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 Go to next message
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
Re: Link error for ProC files [message #449909 is a reply to message #449823] Fri, 02 April 2010 03:31 Go to previous messageGo to next message
Michel Cadot
Messages: 67885
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
1/It is useless to repost the same question above all in the wrong forum, you will not have more answers
2/ Duplicates are merged and deleted
3/ Post your Pro*C question in Pro*C forum.
4/ Read OraFAQ Forum Guide.

Regards
Michel
Re: Link error for ProC files [message #449916 is a reply to message #449909] Fri, 02 April 2010 04:17 Go to previous message
saracooper
Messages: 15
Registered: February 2010
Junior Member
Sorry Michel. I have kind of deadline & am blocked .....
Previous Topic: How to use Cursor with dynamic SQL in ProC?
Next Topic: Using 'Host Arrays' in the 'WHERE' clause
Goto Forum:
  


Current Time: Sat Jun 19 07:46:06 CDT 2021