This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Trouble compiling with gcc
- From: "Meng-Hsueh Chiang" <mhchiang at mail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 22 Jul 2003 03:45:40 -0500
- Subject: Trouble compiling with gcc
I am having trouble to compile with gcc on Sun Sparc OS5.8. The error message is:
gcc -o help help.o
./../../src/lib/hlp.a ./../../src/lib/misc.a -L/usr/X/lib -lXaw -lXt -lXext -Bstatic -lXmu -Bdynamic -lX11 -lm -ltermlib -lsocket -lnsl
Undefined first referenced
symbol in file
_dlopen /usr/lib/libc.a(nss_deffinder.o)
_dlclose /usr/lib/libc.a(nss_deffinder.o)
_dlsym /usr/lib/libc.a(nss_deffinder.o)
ld: fatal: Symbol referencing errors. No output written to help
collect2: ld returned 1 exit status
*** Error code 1
PS. my gcc is 3.2.2 (2.8.1 also tried)
Any clue to where the error might come from will be greatly appreciated.