This discussion is archived
1 Reply Latest reply: Oct 29, 2012 1:25 AM by 943610 RSS

Pro*C compiled on 11g should load of 10g

922861 Newbie
Currently Being Moderated
Is it possible that a program compiled with ORACLE 11g Pro*C compiler to load of 10g ?
My problem is source compiled on 10g works fine for even when connected to 11g database. But it get crashed with compiled on 11g and run in same environment.
Can any please help?
  • 1. Re: Pro*C compiled on 11g should load of 10g
    943610 Newbie
    Currently Being Moderated
    Pro*C doesn't compile the program. It just creates a .c file.
    Then you compile and link it with the library -> ->

    To fool the compiler you have to COPY the data of the library:
    mkdir ~/1
    cd ~/1
    cat $ORACLE_HOME/lib/ >
    ln -s
    gcc -L$HOME/1 -lclntsh
    BTW, what do you mean by crashing? If you try to run the compiled program and it can't find the library, it's not a crash


  • Correct Answers - 10 points
  • Helpful Answers - 5 points