Thread: issues with libraries

  1. #1
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342

    issues with libraries

    I am getting " undefined reference " errors at compile time with the following symbols :
    f_clos , s _ copy , do_lio , e_wsle etc...
    I came to know, f_clos comes under libf77 or libI77.. But, I dont have it on my machine..
    I know how these .a and .so lib files are created , can we get the .c files that are used to generate these lib files?

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    what compiler are you using? GNU source is available on their web site.

  3. #3
    Eager young mind
    Join Date
    Jun 2006
    Posts
    342
    I am using GCC 3. 2. 2.

    Ok, I will take a look...

  4. #4
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    one thing that will trip you up is if you attempt to compile and link C source code (with *.c extension) with a c++ compiler and c++ libraries. It can be done but only if the c++ libraries were compiled with extern "C" scoping so that the compiler does not mangle the function names. I don't know if the libraries you are trying to link with have that problem or now.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GCC: Compiling with both static and shared libraries
    By eatwithaspork in forum C Programming
    Replies: 4
    Last Post: 06-23-2008, 01:48 PM
  2. Replies: 7
    Last Post: 05-13-2008, 03:47 AM
  3. MinGW thread-safe runtime libraries
    By Mario F. in forum C++ Programming
    Replies: 3
    Last Post: 08-21-2006, 08:15 AM
  4. Libraries and headers
    By darksaidin in forum C++ Programming
    Replies: 10
    Last Post: 07-23-2003, 06:24 AM
  5. QT and external libraries
    By Quacker in forum Linux Programming
    Replies: 1
    Last Post: 04-08-2003, 07:02 AM