RE: How to specify libraries for the linker

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

 



Link your program with g++ instead of gcc.  C++ program should always be
linked using g++.

Cheers,
Lyle

-----Original Message-----
From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On
Behalf Of ceklund@xxxxxxxxxxxxxxxxxxxx

Hi,

I`m trying to link my Test.o file to exe file, but the linker 
can`t find any libraries. I think it want`s the standard library.

1. I compiled my Test.cpp file -> OK
2. in the same directory I tried the following:
   gcc -o Test.exe Test.o

mark


[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