Thread: Unable to compile pro C generated C file in cygwin

  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    50

    Unable to compile pro C generated C file in cygwin

    Hi

    I have to run a Pro C generated C file in cygwin. I am trying to compile using g++ compiler of cygwin. But when i am compiling, it is showing that some header file is missing like sqlda.h,sqlcpr.h etc. and it is not compiling. How can i get rid of this error. Please help.

    Thanks
    Sas

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Well you could try providing those headers and any associated files they're needing.

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Jan 2010
    Posts
    50
    How will i provide those files..can you help??

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Run the cygwin setup utility and download the libs you need.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Jan 2010
    Posts
    50
    Thanks for your reply. I am able to get rid of this error. But the problem is i am not finally abl to produce the executable. I haveused following commands.

    Code:
    $ORACLE_HOME/bin/proc test.pc
    
    cc -I${ORACLE_HOME}/precomp/public -c test.c
    
    cc -o test test.c -L $ORACLE_HOME/lib -lclntsh
    First two commands successfully created .c and .o files. But the last command is returning with error like "can not find -lclntsh". Can anyone help me how to get rid of this and to produce executable?

    I am using Oracle 11g rel1 for this compilation and compiling in Cygwin.


    Thanks
    Sas

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can you help me about tolower() in file
    By nctar in forum C Programming
    Replies: 7
    Last Post: 05-12-2010, 10:04 AM
  2. File transfer- the file sometimes not full transferred
    By shu_fei86 in forum C# Programming
    Replies: 13
    Last Post: 03-13-2009, 12:44 PM
  3. Replies: 22
    Last Post: 12-23-2008, 01:53 PM
  4. Need Help Fixing My C Program. Deals with File I/O
    By Matus in forum C Programming
    Replies: 7
    Last Post: 04-29-2008, 07:51 PM
  5. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM