bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem in statical linking of libraries on linux


From: Mukta
Subject: Problem in statical linking of libraries on linux
Date: Sat, 7 Apr 2001 15:56:07 +0530

Hi,
  I have two libraries of form 'lib*.a', which i have recvd with a package. I want to link these libraries with my application in a static mode.
  When i use the -static option with gcc or ld, I get the errors:
'undefined reference to (symbols)'. , and the symbols are 'memcpy, printf..,' and many more.
  The more details abt these bugs are:
 
1. There are many object files (.o), which are used for the 
    creation of the library files which i am using.
 
2. The actual 'undefined reference', errors point to symbols
    in these object files.
 
3. I have received these libraries with a package and so i
    cannot build them myself.
 
4. If I keep these libraries in '/usr/lib' and use 'gcc -shared',
    or 'ld -shared', option instead, then this works fine.
 
Please let me know, If theres any way in which i can link these libraries statically with my application.
 
rgds,
mukta.
 
 
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]