Dear All
I am compiling my code with gpc 2.1 version on solaris 8.0 platform and using the 'ld' linker. Below is the dump I am getting in linking stage
linking ld: Software Generation Utilities - Solaris Link Editors: 5.8-1.285 Undefined first referenced symbol in file __ashrdi3 /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/libgpc.a(sets.o) __floatdidf slaveac.o __ashldi3 /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/libgpc.a(sets.o) __fixtfdi pasmath.o __floatditf /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/libgpc.a(math.o) ld: fatal: Symbol referencing errors. No output written to
Please suggest me as what to be done
Regards Hari
__________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com
vanam srihari kumar wrote:
I am compiling my code with gpc 2.1 version on solaris 8.0 platform and using the 'ld' linker. Below is the dump I am getting in linking stage
linking ld: Software Generation Utilities - Solaris Link Editors: 5.8-1.285 Undefined first referenced symbol in file __ashrdi3 /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/libgpc.a(sets.o) __floatdidf slaveac.o __ashldi3 /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/libgpc.a(sets.o) __fixtfdi pasmath.o __floatditf /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/libgpc.a(math.o) ld: fatal: Symbol referencing errors. No output written to
Please suggest me as what to be done
Try compiling with gpc, adding the -v (verbose) option and look with options it adds when calling the linker, and then use the same options.
BTW, I don't think you have told us why you need to make things so complicated for yourself, and not link via gpc.
Frank
vanam srihari kumar wrote:
I am compiling my code with gpc 2.1 version on solaris 8.0 platform and using the 'ld' linker. Below is the dump I am getting in linking stage
linking ld: Software Generation Utilities - Solaris Link Editors: 5.8-1.285 Undefined first referenced symbol in file __ashrdi3 /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/libgpc.a(sets.o) __floatdidf slaveac.o __ashldi3 /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/libgpc.a(sets.o) __fixtfdi pasmath.o __floatditf /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/libgpc.a(math.o) ld: fatal: Symbol referencing errors. No output written to
the symbols should be defined in libgcc.a. Are you linking in libgcc.a? Note that frequently libgcc.a is given multiple times on linker command line. To see correct linker invocation you can give `-v' option to gpc (and then use the info build your own command line).