How to specify libraries for the linker
Thu Dec 4 17:18:00 GMT 2003

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


-----Original Message-----
From: [] On
Behalf Of


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


More information about the Gcc-help mailing list