Operating System - HP-UX
1753491 Members
4952 Online
108794 Solutions
New Discussion

Re: Pro*C Compilation/Linking Problem

 
scott ruffner_2
New Member

Re: Pro*C Compilation/Linking Problem

I have oracle 10g running on a win2k sever but I need the files in the demo\proc\ directory from oracle 10g. I downloaded the companion cd and install but no demo_proc.mk can you email me them?

thanks,
scott
Vaibhav Patil
New Member

Re: Pro*C Compilation/Linking Problem

Hello ..

The file that contains sqlcxt is libclntsh.a, which is located under $(ORACLE_HOME)/lib32(probably for 32 bit mode) and under $(ORACLE_HOME)/lib(probably for 64 bit mode).

Try including that file explicitly in the .mk file. This may solve the problem.

In my case, the .pc file was compiling fine. But when i was trying to link it with another .c file, it was giving error "Undefined Symbol: .sqlcxt". It was finally resolved by explicitly adding an entry for the file $(ORACLE_HOME)/lib32/libclntsh.a in my .mk file for the .c file.