473,796 Members | 2,425 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with Oracle OCI library - help please

RTJ
I have experienced problems with Oracle OCI library. I was unable to properly
link
OCI library using gcc. Probably gcc compiler provided with SFU is unable to
link
native Windows library.
Oracle provides OCI dll (named oci.dll) and additionally OCI stub library
(oci.lib)
for Microsoft MSVC compiler. I have attempted to link dora with both OCI dll
and
OCI lib. Link with OCI lib resulted with many strange linker errors
(probably gcc does not recognize the "lib" file format).
Link with OCI dll i have performed in two ways:
-- using options: -L$(ORACLE_HOME)/bin -loci
- gcc produced error message that library is not found
-- providing full library pathname in command line:
$(ORACLE_HOME)/bin/oci.dll
- gcc produced error messages about unresolved symbols, although these
symbols are located in this library.

If somebody did successfully link any native Windows library with any program
written for SFU, please inform me how to link such library properly.

On the other hand, I couldn't bring to work the second compiler provided with
SFU
-- the Microsoft compiler. Maybe somebody was able to compile
a C++ source file or create a shared library using it ?
Which compiler are you using ?
--
Regards
Romek
=> http://www.rtj.republika.pl <= my photo gallery

Nov 14 '05 #1
4 4086
On Tue, 14 Dec 2004 16:37:57 +0100
"RTJ" <ro**********@p olbox.com> wrote:
I have experienced problems with Oracle OCI library.
Not part of the C language and therefor off topic here.
I was unable to properly link
OCI library using gcc. Probably gcc compiler provided with SFU is
unable to link native Windows library.
How to drive the tools is implementation specific and off topic here.
Oracle provides OCI dll (named oci.dll) and additionally OCI stub
library
(oci.lib)
..dll and .lib files are not part of the C language and therefor off
topic here.
for Microsoft MSVC compiler. I have attempted to link dora with both
Interoperabilit y of different tool chains is highly implementation
specific and therefor off topic here.

<snip>
Which compiler are you using ?


Irrelevant to most discussions here.

I suggest asking in a Windows, gcc or Oracle group since nothing you are
asking about is on topic for this group.
--
Flash Gordon
Living in interesting times.
Although my email address says spam, it is real and I read it.
Nov 14 '05 #2
On Tue, 14 Dec 2004 16:37:57 +0100, RTJ wrote:
I have experienced problems with Oracle OCI library. I was unable to properly
link
OCI library using gcc. Probably gcc compiler provided with SFU is unable to
link
native Windows library.


comp.lang.c is a newsgroup for discussing the standard C programming
language. Your problem isn't about standard C, rather it is about a highly
platform and compiler specific link issue. Try a newsgroup better
targetted to your problem, maybe something in the gnu.gcc.* or
comp.databases. oracle.* hierarchies.

Lawrence

Nov 14 '05 #3
RTJ wrote:

I have experienced problems with Oracle OCI library. I was unable
to properly link OCI library using gcc. Probably gcc compiler
provided with SFU is unable to link native Windows library.
Oracle provides OCI dll (named oci.dll) and additionally OCI stub
library (oci.lib) for Microsoft MSVC compiler. I have attempted to

.... snip ...

To make this even remotely on-topic here you will have to publish
the full source and headers for the OCI library and the Windows
library. Make sure they don't exceed a few hundred lines, properly
indented with spaces, not tabs.

This newsgroup deals with the portable C language as described in
the ISO standards, and not with non-standardized add-ons. For
system specific things, find a newsgroup dealing with that system.

--
Chuck F (cb********@yah oo.com) (cb********@wor ldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home .att.net> USE worldnet address!

Nov 14 '05 #4
RTJ
"CBFalconer " <cb********@yah oo.com> wrote in message
news:41******** *******@yahoo.c om...

To make this even remotely on-topic here you will have to publish
the full source and headers for the OCI library and the Windows
library. Make sure they don't exceed a few hundred lines, properly
indented with spaces, not tabs.


;-)
ok, ok, I understood
sorry for off topic

--
Regards
Romek
=> http://www.rtj.republika.pl <= my photo gallery

Nov 14 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2804
by: Greg Lindstrom | last post by:
Greetings- I am running Python 2.3.3 on HP-UX and would like to access an Oracle 9i database. Looking through the vaults, I see 4 or 5 modules that might work and was wondering if anyone is currently hitting Oracle and what are you using. I get to build a new system from the ground up and the powers that be are allowing me to do it in Python. I'm quite happy. Thanks for your help,
3
5229
by: Jan Bols | last post by:
I've been trying to install Oracle 8.1.7 on a fresh Mandrake 9.1 O.S for days, but I'm still not able to get it running. I've tried several install instructions that I found on the internet but no luck yet. Here is a short description of what I did so far: 1. I installed the jdk118_v3-glibc-2.1.3.tar in the /usr/local/ dir and made a symbolic link from /usr/local/java to this 2. I installed all the necessary groups and users (oracle,...
2
13853
by: William F. O'Neill | last post by:
Have just upgraded my home installation of Oracle 10g. Was using 9i. The installation seemed to go fine, but with all the documentation, I'm having a hard time getting the Enterprise Manager to work. With 9i, I had a shortcut like c:\oracle\ora90\bin\oemapp.bat console. Can't find anything in the reams of documentation on how to start EM in Oracle 10g. Any help please...Also, I am getting an error msg: Oracle_Sid needs to be defined....
1
8674
by: black hawk | last post by:
Hello, i have a big problems, to install oracle 9i v9.2 Server to my "Windows XP" with Service Pack 2 and all security and other updates from Microsoft. The "Universall Installer" (Standard Edition is Selected and only Software is Selected) throws an exception, during the installation by 11 Percent installation progress!
0
3471
by: black hawk | last post by:
Hello, i have a big problems, to install oracle 9i v9.2 Server to my "Windows XP" with Service Pack 2 and all security and other updates from Microsoft. The "Universall Installer" (Standard Edition is Selected and only Software is Selected) throws an exception, during the installation by 11 Percent installation progress!
0
2892
by: Nagi | last post by:
Hi, I'm working for the backup application. Currently we need to support Oracle8i backups for our application. We are having OCI* calls from our code. We are using Recovery Manager: Release 8.1.7.4.0 - Production version in our system. We have installed the oracle 81740 patch.
1
767
by: RTJ | last post by:
I have experienced problems with Oracle OCI library. I was unable to properly link OCI library using gcc. Probably gcc compiler provided with SFU is unable to link native Windows library. Oracle provides OCI dll (named oci.dll) and additionally OCI stub library (oci.lib) for Microsoft MSVC compiler. I have attempted to link dora with both OCI dll and OCI lib. Link with OCI lib resulted with many strange linker errors
4
2311
by: Francis Awofeso | last post by:
I am new to .NET and I am trying to connect to Oracle database. Can someone with this experience please describe the steps or process to connect to Oracle from .Net. I will appreciate it if anyone can recommend a URL or book or document that described the process. Thanks in advance Francis Awofeso
5
5396
by: Michael Rudolph | last post by:
Hi newsgroup, I have an issue with the configuration of a DB2 federated database (WebSphere Information Integrator) in conjunction with the relational wrapper for Oracle on AIX. DB2 seems to not use the existing tnsnames.ora. The Oracle client is installed and the connection to the Oracle database using tnsping and sqlplus is possible (for the db2instance user). For that I changed the environment for the db2instanceuser and added the...
9
2207
by: Frank | last post by:
Hi, imagine there's a WEB application reading data from an Oracle database to visualize in using DataGrids in the clients browser. Yes, sounds simple, just create OracleConnection + OracleCommand + DataAdapter, bind a DataGrid to the DataAdapter, that's it. Problem with that approach might be the hardcoded CommandString of the OracleCommand. Whenever somebody requests query string changes you have to adapt the C# code, to recompile and...
0
9680
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10455
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10228
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10173
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7547
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5441
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4116
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2925
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.