0 Replies Latest reply on Nov 18, 2004 5:36 PM by stevebadgett

    undefined reference to ...

    stevebadgett
      Need HELP compiling an Oracle demo c program...

      oci04.c

      I am trying to get a simple test program to compile and I get this "undefined reference to ...." message. I have in used the "-I" and do not know what I am missing. Would you help, have to get this rolling.
      ________________________________________

      cat makeTEST1
      gcc -I/orca/oracle/product/9.0.4/rdbms/demo test1.c -o ~/bin/ORAtest1.o

      [sbadgett@devload connect]$ makeTEST1
      /tmp/cc0sECvn.o(.text+0xba): In function `setup':
      : undefined reference to `oopen'
      /tmp/cc0sECvn.o(.text+0xf9): In function `setup':
      : undefined reference to `oparse'
      /tmp/cc0sECvn.o(.text+0x14e): In function `setup':
      : undefined reference to `obndra'
      /tmp/cc0sECvn.o(.text+0x197): In function `setup':
      : undefined reference to `odefin'
      /tmp/cc0sECvn.o(.text+0x1e0): In function `setup':
      : undefined reference to `odefin'
      /tmp/cc0sECvn.o(.text+0x229): In function `setup':
      : undefined reference to `odefin'
      /tmp/cc0sECvn.o(.text+0x267): In function `get_data':
      : undefined reference to `oexec'
      /tmp/cc0sECvn.o(.text+0x2b1): In function `get_data':
      : undefined reference to `ofetch'
      /tmp/cc0sECvn.o(.text+0x3b6): In function `err_report':
      : undefined reference to `oerhms'
      /tmp/cc0sECvn.o(.text+0x478): In function `logon':
      : undefined reference to `olog'
      /tmp/cc0sECvn.o(.text+0x4c3): In function `logoff':
      : undefined reference to `oclose'
      /tmp/cc0sECvn.o(.text+0x4fc): In function `logoff':
      : undefined reference to `ologof'
      collect2: ld returned 1 exit status

      steve