OpenCOBOL Forum Index OpenCOBOL
libcob: Cannot find module 'SQLADR' | Register To Post |
| Threaded | Oldest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| DAF | Posted on: 2011/4/28 9:17 |
Just popping in ![]() ![]() Joined: 2011/4/7 From: Espaņa Posts: 12 |
Re: libcob: Cannot find module 'SQLADR' Thanks for the reply!
To link with oracle 10g express the dll ir orasql10, no libs needed after the precomp process |
| miengtee | Posted on: 2011/4/27 22:23 |
Just popping in ![]() ![]() Joined: 2011/4/27 From: Posts: 1 |
Re: libcob: Cannot find module 'SQLADR' LOL,
I also have the same problem with you sir... please anybody experience like this scenario? help us okay? i find it hard to compile things embedded from SQL msgs... tnx
|
| human | Posted on: 2011/4/27 18:20 |
Home away from home ![]() ![]() Joined: 2007/5/15 From: GERMANY Posts: 1416 |
Re: libcob: Cannot find module 'SQLADR' According to http://www.uni-muenster.de/ZIVdoc/oracle/oracle.805/server.805/a58232.pdf (7-42 Compiling and Linking) oci.lib/liboci are only needed for OCI calls, you allways need to link sql.lib/libsql if you want to use the Pro*COBOL Precompiler.
Don't forget to check if you need to change the CALL commands to lower-case CALL 'sqladr'. human |
| DAF | Posted on: 2011/4/27 15:03 |
Just popping in ![]() ![]() Joined: 2011/4/7 From: Espaņa Posts: 12 |
Re: libcob: Cannot find module 'SQLADR' Hi.
And what about in windows with oracle express 10g? What is the lib? Maybe oci.lib? |
| malikam | Posted on: 2010/7/28 4:09 |
Just popping in ![]() ![]() Joined: 2010/7/28 From: Posts: 1 |
Re: libcob: Cannot find module 'SQLADR' Pro* COBOL precompiler inserts the call to SQLADR in upper case. You just require to change the the case of SQLADR to all lower case and link the library libsql avaliabe at $ORACLE_HOME/lib.
libsql contains the function "sqladr" in small case. To confirm pls check with command "nm -A libsql8.a |grep -i sqladr" This will surely work....... |
| ska | Posted on: 2009/8/7 12:44 |
Just can't stay away ![]() ![]() Joined: 2008/3/17 From: NYC Posts: 145 |
Re: libcob: Cannot find module 'SQLADR' Quote:
Hi, I'm assuming you doing something like that: cobc -x TEST.cbl ${ORACLE_HOME}/precomp/lib/cobsqlintf.o -L${ORACLE_HOME}/lib -lclntsh You have 2 choices - ether use cobc -x -fstatic-call ... or include ${ORACLE_HOME}/bin in COB_LIBRARY_PATH and use COB_PRE_LOAD=libclntsh.so
|
| btiffin | Posted on: 2009/8/7 1:48 |
Home away from home ![]() ![]() Joined: 2008/6/7 From: CANADA Posts: 1196 |
Re: libcob: Cannot find module 'SQLADR' Karey; we have a little experience here on oc.o, but if you could post more of the tectonics (build instructions) help might go farther, faster or crash into a wall.
In particular, I'd be curious as to what the -L and -l (little l) options look like. SQLADR may not be in SHLIB_PATH (if I remember the HPUX. It might be LD_LIBRARY_PATH or LIB_PATH or ..., but it's best to leave these env vars alone anyway) And maybe http://opencobol.add1tocobol.com/#what-is-cob-pre-load Here's rooting for you. It'll be cool if 1.0 (or 1.1pre-release for that matter) can compile and run the output from Oracle's preprocessor. Cheers, Brian |
| kdsadler | Posted on: 2009/8/6 20:46 |
Just popping in ![]() ![]() Joined: 2009/6/10 From: Posts: 10 |
libcob: Cannot find module 'SQLADR' I am using a precompiled OC-1.0 package on an HP-UX 11.0 server.
I am attempting to compile programs written with embedded SQL statements after they have been pre-compiled with Oracle's procobol. I have linked the Oracle library. My problem is that I keep getting the message: libcob: Cannot find module 'SQLADR'. Anyone have any experience doing such a thing? Thanks, --Karey |
| Threaded | Oldest First | Previous Topic | Next Topic | Top |
| Register To Post | |








