Link to home
Start Free TrialLog in
Avatar of SilviaMacke
SilviaMacke

asked on

Creating a shared library in AIX for Oracle to use

A while back I wrote some code in C for Windows NT. I compiled this code in NT and created a dll. Then I was able to invoke this dll through PL/SQL after creating a user library in Oracle. This code consists of 2 cpp files and 2 header files. I have to link this code to an external library.

Now I need to take this code and compile it in AIX. I looked at the Oracle makefiles that they suggest we use for compiling . I guess in AIX the equivalent of a Windows NT dll is a shared library. How can I modify the Oracle provided makefiles to create my shared library? Where in the makefiles do I include my external library that I need to link my code to? In addition I need to add a path where my include files reside. Where do I do this?

Thanks
Silvia
ASKER CERTIFIED SOLUTION
Avatar of schwertner
schwertner
Flag of Antarctica image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SilviaMacke
SilviaMacke

ASKER

That sounds good, however it does not answer my question.

I have two source files: test1.cpp
                                   test2.cpp
Two header files: test1.h
                          test2.h

The file test1.cpp contains definition a class and its functions
The file test2.cpp instantiates the class from test1.cpp and it creates the functions that I want to export.

When compiling the source code, I need to link this code to another library and inlcude a path.
How do I do this ? Can I use the Oracle make files?

I need to compile this as a Unix Shared Library
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial