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

Thread: Error while Linking C generated from Pro C

  1. #1
    Join Date
    Apr 2003
    Location
    India
    Posts
    3

    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 8.1.5.0.0 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.

    Regards,

    Rajaangamuthu

  2. #2
    Join Date
    Jan 2001
    Posts
    2,828
    Hi

    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..


    regards
    Hrishy

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