Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 08-03-2008, 12:09 PM   #1 (permalink)
Hey here is the aks
 
arunks's Avatar
 
Join Date: Jan 2006
Location: punjab
Posts: 805
Default OCCI implementation in g++ in linux for interction with oracle..


Guys plz help me

I m getting following errors when i compile my file new1.cpp through g++ compiler

Code:
new1.o: In function `main':
new1.cpp:(.text+0xac): undefined reference to `oracle::occi::Environment::create
Environment(oracle::occi::Environment::Mode, void*, void* (*)(void*, unsigned in
t), void* (*)(void*, void*, unsigned int), void (*)(void*, void*))'
collect2: ld returned 1 exit status
plz tell me what to do...
__________________
yours truly
arun
The aks!!

have a nice day
arunks is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 08-03-2008, 04:42 PM   #2 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: OCCI implementation in g++ in linux for interction with oracle..

You need to link your compiler to the OCCI libraries I guess.

Try:
Code:
g++ -L/$ORACLE_HOME/lib/ -L/$ORACLE_HOME/rdbms/lib/ -o program program.o -locci -lclntsh
Src.
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
oracle and linux cds to dvd conversion anilmm2006 Tutorials 1 17-08-2006 07:40 PM
Oracle 10g release 2 in LINUX??? paragkalra Open Source 1 08-07-2006 11:21 AM
RAID IMPLEMENTATION sureshkumar QnA (read only) 2 26-09-2005 02:00 PM

 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:53 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2