Re: How to use "nm" for "undefined reference" problem catch.

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

 



Gengis Kanhg Toledo "RamXrez" <gengiskanhg.geo@xxxxxxxxx> writes:

> The problem:
> 
> $ g   ./main.cc -o prueba
> /home/<myname>/tmp/ccEOfejM.o(.text 0x11): In function
> `main':
> : undefined reference to `foo()'
> collect2: ld returned 1 exit status

You didn't link against foo.o.  gcc will only include foo.o if you
tell it too.

Ian

[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