Kohinoor24
September 26th, 2002, 04:17 AM
Iam compiling a project under Linux.Iam giving the following compile & link options.
compileOPtions = "-o -xc++ -c -w -g -I./inc -D_UNICODE -DM_UNIX"
LinkOptions = "-Wl,-R/opt/gcc3/lib -L. -L/opt/gcc3/lib -lpthread -lstdc++ -lgcc_s -oToken_exe"
It compiles,produces the .o file.But Iam getting the following Link Errors.
Iam sending as attachment a file Pjt.h which contains all the undefined references.
In my token.cpp contains the main() Func
& Iam DECLARING #include "PJT.h" there
/usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14.
/usr/bin/ld: Dwarf Error: Could not find abbrev number 784.
obj/Token.o: In function `main':
obj/Token.o(.text+0x1ed): undefined reference to `pjtOpenStep'
obj/Token.o(.text+0x1f2): undefined reference to `pjtGetFirst'
obj/Token.o(.text+0x326): undefined reference to `pjtGetNext'
obj/Token.o(.text+0x362): undefined reference to `pjtClose'
collect2: ld returned 1 exit status
make: *** [Test] Error 1
could any one help...
compileOPtions = "-o -xc++ -c -w -g -I./inc -D_UNICODE -DM_UNIX"
LinkOptions = "-Wl,-R/opt/gcc3/lib -L. -L/opt/gcc3/lib -lpthread -lstdc++ -lgcc_s -oToken_exe"
It compiles,produces the .o file.But Iam getting the following Link Errors.
Iam sending as attachment a file Pjt.h which contains all the undefined references.
In my token.cpp contains the main() Func
& Iam DECLARING #include "PJT.h" there
/usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14.
/usr/bin/ld: Dwarf Error: Could not find abbrev number 784.
obj/Token.o: In function `main':
obj/Token.o(.text+0x1ed): undefined reference to `pjtOpenStep'
obj/Token.o(.text+0x1f2): undefined reference to `pjtGetFirst'
obj/Token.o(.text+0x326): undefined reference to `pjtGetNext'
obj/Token.o(.text+0x362): undefined reference to `pjtClose'
collect2: ld returned 1 exit status
make: *** [Test] Error 1
could any one help...