Re: Hello world program loads unused Oracle SO libraries
- From: kermit <kermit@xxxxxxxxxx>
- Date: Fri, 03 Nov 2006 01:09:59 GMT
On Wed, 01 Nov 2006 13:40:43 +0100, herbert koelman wrote:
I've written the classic hello.c (the one that says hello world).
I used a makefile that builds programs to run against Oracle using OCCI.
So make runs this command:
cc -I /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/
-g -D_REENTRANT -I
/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/rdbms/public/ -g
-D_REENTRANT -L /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/lib
-L /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib -locci
-lclntsh -lpthread hello.c -o hello
This produced the hello program.
So far still good. Now I run the program and obtains:
[herbert@pc-bureau src]$ ./hello herbert
./hello: error while loading shared libraries: libocci.so.10.1: cannot
open shared object file: No such file or directory
I don't understand why would the program try to load a library it is not
using !!??
.... because you linked agained libocci ( -locci in your compile flags).
Obviously for just a hello world program, you wouldn't need to link
against these
.
- Follow-Ups:
- Re: Hello world program loads unused Oracle SO libraries
- From: herbert koelman
- Re: Hello world program loads unused Oracle SO libraries
- Prev by Date: Re: fc5 installation problem
- Next by Date: Re: NEWBIE : Detect and restart closed apps.
- Previous by thread: Re: fc5 installation problem
- Next by thread: Re: Hello world program loads unused Oracle SO libraries
- Index(es):
Relevant Pages
|