2 Replies Latest reply: Jul 22, 2014 4:01 AM by Masa-Oracle RSS

    undefined reference to `SQLCA'

    2709482

      I try compiling c and c++ programs through a Makefile and i get the below error

      TBCCheckUser.c: In function 'ACheckUser':

      TBCCheckUser.c:304: warning: incompatible implicit declaration of built-in function 'strcpy'

      TBCCheckUser.c:327: warning: incompatible implicit declaration of built-in function 'memset'

      /tmp/ccDQ9P4h.o: In function `ACheckUser':

      TBCCheckUser.c:(.text+0x228): undefined reference to `SQLCA'

      TBCCheckUser.c:(.text+0x606): undefined reference to `SQLCA'

      collect2: ld returned 1 exit status

      CMDTUX_CAT:1832: ERROR: can't execute cc    -I$TUXDIR/include -o TBCCheckUser BS-4dd2.c  -L${TUXDIR}/lib TBCCheckUser.c  -ltux -lbuft  -L${ORACLE_HOME}/lib -lclntsh -lfml -lfml32 -lengine -ldl -lpthread

      I installed Tuxedo 12.1.1.0 in Oracle linux 5.6(Enterprise-R5-U6-Server-x86_64). , and i have set path exp :

      export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:$TUXDIR/bin:$JAVA_HOME/bin:$ORACLE_HOME/precomp/public:$ORACLE_HOME/lib:$PATH

       

       

      I have some application related .C\.C++ files.Trying to compile them ,but end up with the above error.

       

      Could you please help me to resolve the issue?

       

      Regards,

      Arthi