How to specify libraries for the linker
lrtaylor@micron.com
lrtaylor@micron.com
Thu Dec 4 17:18:00 GMT 2003
Link your program with g++ instead of gcc. C++ program should always be
linked using g++.
Cheers,
Lyle
-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of ceklund@mail.student.oulu.fi
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
More information about the Gcc-help
mailing list