undefined symbol SQLCA while linking
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: undefined symbol SQLCA while linking

  1. #1
    Join Date
    Sep 2001
    Hi Guys,

    I am having trouble linking pro*C programs with GNU gcc on SUN SOLARIS server. I am getting undefined symbol "sqlca" while linking. thanks in advance.
    The error message is as follows:

    Undefined first referenced
    symbol in file
    sqlca sqlio.o
    ld: fatal: Symbol referencing errors. No output written to ccmsdaly
    collect2: ld returned 1 exit status
    *** Error code 1
    The following command caused the error:
    gcc -o ccmsdaly ccmsmain.o ccmsdaly.o sqlio.o ccmslib.o commmemb.o commhear.o commloc.o chartcod.o dailyfil.o membrec.o validbil.o votedet.o votesum.o -L-L. -L/disk1/app/oracle/product/8.1.7/lib/ -lclntsh `cat /disk1/app/oracle/product/8.1.7/lib/sysliblist` -R/disk1/app/oracle/product/8.1.7/lib -laio -lm
    make: Fatal error: Command failed for target `ccmsdaly'

  2. #2
    Join Date
    Sep 2001
    Found the problem and fixed. Now it is working fine.

Posting Permissions

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

Click Here to Expand Forum to Full Width