ITEM: J3689L

xlC-0706-317:Unresolved or undefined symbols


Question:

        I have a xlC 2.1.1.0. I am receiving some errors about
unresolved or undefined symbols. What could be causing this.
Has to do with _sterm64 and _sinit64.
0706-317: ERROR: Unresolved or undefined symbols detected.
_sterm64_x_2focal_2fattlib_2f2_2e1_2fstream_2fcstreams_2ec()
_sinit64_x_2focal_2fattlib_2f2_2e1_2fstream_2fcstreams_2ec()

Response:

Customer is attempting to build an application that
includes _static_ versions_ of the C++ and Motif libraries, but shared
versions of everything else.  His approach was to include
-bI:/lib/syscalls.exp, -bnso, and -bso, which was producing an odd
command line and multiple definitions of symbols.  I told him:

1) use -lCns to link to a non-shared version of the C++ RTE.

2) don't use -bI:/lib/syscalls.exp, as those symbols are handled by
   the c library, which he wants to retain as shared.

3) build an intermediate object for Xm with the command
      ld -r -bnso -o tmp.o -lXm

4) link his application with something like
      ld -o ... ... -lCns tmp.o -lXt -lX11 ...
   which replaces the -lXm reference with a static copy of the code
   (via tmp.o)


Support Line: xlC-0706-317:Unresolved or undefined symbols ITEM: J3689L
Dated: June 1996 Category: N/A
This HTML file was generated 99/06/24~13:30:43
Comments or suggestions? Contact us