Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2008
    Posts
    4

    Question Unanswered: compilation error

    Hi,

    I am getting following error while compiling C code which is using informix libraries:
    gl_get_ltime_fmts /opt/informx7/lib/esql/libgen.a(gdtfmt.o)
    gl_cv_outbuflen /opt/informx7/lib/esql/libsql.a(iqfetch.o)
    gl_full_charoffset /opt/informx7/lib/esql/libsql.a(iqinsert.o)
    gl_lc_pieces2lc_spec /opt/informx7/lib/esql/libgen.a(initgls.o)
    ld: fatal: Symbol referencing errors. No output written to saw1
    make: *** exit code 1 making saw1

    Can someone tell me what could be the problem here and how can I rectify it?

    Thanks,
    Smitha

  2. #2
    Join Date
    Nov 2008
    Posts
    65
    Provided Answers: 1
    Give us some more details.
    CSDK Version?
    Platform?
    Compiler?
    Also post output of esqlc command (with -v option)
    Regards

  3. #3
    Join Date
    Dec 2008
    Posts
    4
    Hi,

    Compiler :cc
    Platform : SunOS dast1 5.8 Generic_117350-46 sun4u sparc SUNW,Ultra-Enterprise
    esql -v gives:

    Undefined first referenced
    symbol in file
    main /opt/SUNWspro/SC5.0/lib/crt1.o
    ld: fatal: Symbol referencing errors. No output written to a.out

    esql -V gives:
    IBM Informix CSDK Version 2.81, IBM Informix-ESQL Version 9.53.UC3
    Software Serial Number RDS#N000000

    Let me know in case any other info will help to figure out the problem.

    Thanks,
    Smitha

  4. #4
    Join Date
    Nov 2008
    Posts
    65
    Provided Answers: 1
    What I mean is compile your program with -v option and post output.

  5. #5
    Join Date
    Dec 2008
    Posts
    4

    Question Linker error:Undefined symbol

    Hi,


    I was able to resolve the earlier error just by including path of those informix7 libraries in my Makefile. Thanks for giving me some pointer which really helped to solve earlier error.
    But now I am getting these errors related to some X windows system libraries. Even if I include these files in Makefile and copy these into current directory, on compiling it gives following linker errors:


    Undefined first referenced
    symbol in file
    XwtexteditWidgetClass /project/abm/r8.0/lib/xultk.a(XuHelp.o)
    XwTextClearBuffer /project/abm/r8.0/lib/xultk.a(XuHelp.o)
    XwTextInsert /project/abm/r8.0/lib/xultk.a(XuHelp.o)
    XwmenubuttonWidgetClass /project/abm/r8.0/lib/libXw.a(Primitive.o)
    ld: fatal: Symbol referencing errors. No output written to saw
    make: *** exit code 1 making saw

    Please help me resolve these.

    Thanks,

    Smitha

  6. #6
    Join Date
    Nov 2008
    Posts
    65
    Provided Answers: 1
    This is quite similar problem: your linker can't find some functions (i.e. libraries with compiled code of these functions). I never wrote X windows program, but I suppose you'll have to add some more "-l" options to your makefile.
    HTH

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •