Re: OCCI question

From: Frank <fvanbortel_at_netscape.net>
Date: Sun, 09 Mar 2003 16:15:28 +0100
Message-ID: <3E6B5A90.4060909_at_netscape.net>


dave wrote:

> using "make -f demo_rdbms.mk demos" works fine, but "make -f demo_rdbms.mk
> occidemos" doesn't.
> more on " get the 9i environment relinked correctly"?
> 
> Thanks
> 
> 
> 
> "Frank" <fvanbortel_at_netscape.net> wrote in message
> news:3E5A71BA.8060603_at_netscape.net...
> 

>>dave wrote:
>>
>>>oracle 9.2, linux advanced server, linux 2.4.20 #3 SMP, i686,i386,
>>>GNU/linux, gcc2.96(alos tried 3.2), glibc 2.2.93-5
>>>
>>>Thanks
>>>
>>>
>>>"Frank" <fvanbortel_at_netscape.net> wrote in message
>>>news:3E58EE26.5040108_at_netscape.net...
>>>
>>>
>>>>dave wrote:
>>>>
>>>>
>>>>>env: oracle9i, redhat8.0
>>>>>I'm linking a demo(comes from original database installation) occi
>>>>
>>>source
>>>
>>>
>>>>>file(occiclob.cpp) with both demo_rdbms.mk or g++ directly, here is the
>>>>>command(libocci.so is under /opt/oracle/products/9.2/lib/):
>>>>>
>>>>
> g++ -L/opt/oracle/products/9.2/lib/ -L/opt/oracle/products/9.2/rdbms/lib/ -o
> 

>>>>>occiclob occiclob.o -locci -lclntsh -ldl -lm
>>>>>
>>>>>and get following error message:
>>>>>occiclob.o:undefined reference to 'typeinfo for
>>>>>oracle::occi::SQLException'
>>>>>...
>>>>>occiclob.o: undefined reference to
>>>>>'oracle::occi::Environment::createEnvironment(..)'
>>>>>...
>>>>>
>>>>>Any clues on troubleshooting
>>>>>
>>>>>TIA
>>>>>
>>>>>dave
>>>>>
>>>>>
>>>>
>>>>versions, please... 9i R1 or 2? binutils, gcc, kernel?
>>>>
>>>>--
>>>>Regards, Frank van Bortel
>>>>
>>>
>>>
>>>
>>According to the docu, you should:
>>1. make -f demo_rdbms.mk <demoname>
>>To compile sample program occidml.cpp:
>>% make -f demo_rdbms.mk occidml
>>
>>2. make -f demo_rdbms.mk buildocci EXE=demoname OBJS="demoname.o ..."
>> To compile user program new.cpp:
>>% make -f demo_rdbms.mk buildocci EXE=new EXE=new.o
>>
>>To compile user program new.cpp with static libraries:
>>%make -f demo_rdbms.mk buildocci_static EXE=new OBJS=new.o
>>
>>Sorry - no RH Adv Server here ;-)
>>Did you get the 9i environment relinked correctly?
>>--
>>Regards, Frank van Bortel
>>
> 
> 
> 

Well there are some issues relinking. There's one makefile to be edited; looks like you managed that quite allright, though.
Sorry, ran out of ideas overhere.

-- 
Regards, Frank van Bortel
Received on Sun Mar 09 2003 - 16:15:28 CET

Original text of this message