Home » Developer & Programmer » Precompilers, OCI & OCCI » Link error for ProC files (merged)
Link error for ProC files (merged) [message #449823] |
Thu, 01 April 2010 03:41  |
saracooper
Messages: 15 Registered: February 2010
|
Junior Member |
|
|
Hello,
I have 3 code files written in ProC. I have precompiled, compiled, tested them in my local environment (Windows) & they work fine. But when I try in real environment, AIX 5.3, I can precompile them. But when I try to compile & link them with the libclntsh library I get errors. I am using a Makefile but just for testing this is the command -
xlc oraProcs oraProcs.c test_curva.c lib_util.c -I $ORACLE_HOME/precomp/public -L $LIBPATH -l libclntsh.a
Error - ld: 0706-006 Cannot find or open library file: -l libclntsh.a
ld: open(): A file or directory in the pathname does not exist
where LIBPATH = $ORACLE_HOME/lib
library libclntsh.a exists in $ORACLE_HOME/lib & has the right permissions
I also tried removing the library libclntsh.a & recreating it using the command - genclntsh
When I run this command I get this warning more than once -
ld: 0711-783 Warning TOC overflow TOC size: 66888 Max size: 65536
genclntsh creates the library libclntsh.a, just not sure if these warnings damage the library file and are related to my link erros in some way.
Please let me know if u have any suggestions. Any help is appreciated. Thanks
|
|
|
|
|
Goto Forum:
Current Time: Fri Apr 04 20:15:25 CDT 2025
|