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).