Re: Simple linking problem

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

 




Andrew Haley-5 wrote:
> 
> Yes.  The command is called "nm".
> 

Thanks. It seems to often happen that what you are looking for is in the
last place you look. Usually you ask for help online just before looking in
that last place, too. I discovered nm mere minutes after asking my question.

Unfortunately, nm merely confirmed what I already knew. It has some rather
complicated output, but the names of these so-called undefined functions are
in the library, right next to a T which should mean that the library
provides a definition of these functions.

So it is really a very simple riddle. 'gcc -lmylib mysource.c' uses a
function 'foo' which nm shows is defined in libmylib.a. gcc does not
complain about not being able to find mylib, but it does complain that 'foo'
is an 'undefined reference'. In what situation could that happen?
-- 
View this message in context: http://www.nabble.com/Simple-linking-problem-tf3720892.html#a10411665
Sent from the gcc - Help mailing list archive at Nabble.com.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux