DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Apr 2003

    Error while Linking C generated from Pro C

    Hi All,

    I am facing the following error while trying to link sample.c program generated from sample.pc (Pro c).

    Undefined symbol _SQLCXT in module sample.c
    Undefined symbol _SQLGLM in module sample.c

    This Pro C program has to connect to my oracle database using EXEC SQL CONNECT :username IDENTIFIED BY :password.

    I am using Oracle 8i Release database with Pro*C Compiler version 8.1.6 under Windows 2000 SP3 environment. And I am trying to generate exe file using Turbo C compiler 3.0.

    I believe i am missing some of the libraries reqd in this environment.
    Can anyone help me pls ? Thanks in anticapiting the solution.



  2. #2
    Join Date
    Jan 2001

    Please refer to the steps below..

    Write an OCI program (e.g. myoci.c).
    You can find examples in the
    $ORACLE_HOME/oci/samples directory.

    Copy the make file $ORACLE_HOME/oci/samples/make
    into the directory where your OCI program is located.
    You can also copy some of the sample OCI files (cdemo1.c, etc.)
    provided by Oracle to compile and link.

    Issue the following command
    make myoci.c

    You should also set the path to your compiler..


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

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.