RE: Newbie compiling -> "undefined reference to" error

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

 



Hi tirengarfio,

Try this...

g++ main.cpp CPrueba.cpp -o main

...or try this...

g++ -c main.cpp -o main.o
g++ -c CPrueba.cpp -o CPrueba.o
g++ main.o CPrueba.o -o main

HTH,
--Eljay


[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