473,403 Members | 2,323 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

How to build & load shared objects in Unix

6
Hi there,

I have a C programs.I need to create a shared object and load the same.
What are the options required to complie a C program (in AIX/HP) as a shared library and also tell me how to load the same.

Thanks in advance...
Mar 7 '07 #1
3 4687
sicarie
4,677 Expert Mod 4TB
Hi there,

I have a C programs.I need to create a shared object and load the same.
What are the options required to complie a C program (in AIX/HP) as a shared library and also tell me how to load the same.

Thanks in advance...
I believe that would depend on your compiler. I would recommend GCC personally, though you will definitely have to check and see if it is supported.
Mar 8 '07 #2
AdrianH
1,251 Expert 1GB
Hi there,

I have a C programs.I need to create a shared object and load the same.
What are the options required to complie a C program (in AIX/HP) as a shared library and also tell me how to load the same.

Thanks in advance...
Are you refering to shared memory space? Or something like a dll as stated here?


Adrian
Mar 8 '07 #3
Yuga
6
Are you refering to shared memory space? Or something like a dll as stated here?


Adrian
Hi,
Thanks for your pointers.

I got solution for this

Solaris 8:
cc –G –o test.so test.c

HP-UX:
cc –b –o test.sl test.c

AIX:
cc –G –o test.so test.c

and we need to set the path: LD_LIBRARY_PATH (Solaris), SHLIB_PATH (HP-UX), LIBPATH (AIX) accordingly to load the same.
Mar 28 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: mudd | last post by:
How do I build Python so that I get static libraries instead of dynamic libraries (e.g. build/lib.solaris-2.8-sun4u-2.3/math.so)? John
10
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a...
47
by: mihai | last post by:
What does the standard say about those two? Is any assurance that the use of STL is thread safe? Have a nice day, Mihai.
19
by: Ramon | last post by:
Hello all, Over the last couple of month, since the release of PHP 5 I have been involved in a number of heated discussions which sometimes reduced them selves to blatant name calling and an...
19
by: Alex Madon | last post by:
Hello, I am testing a web application (using the DBX PHP function to call a Postgresql backend). I have 375Mb RAM on my test home box. I ran ab (apache benchmark) to test the behaviour of the...
21
by: llothar | last post by:
Hello, i need to manage a heap in shared memory. Does anybody know about a portable (win32+mac+posix) c implementation for this.
11
by: Max Vit | last post by:
I have deployed few Access apps splitting it in Front End and Back End. Our environment uses Win XP SP2 for clients, Win 2k3 for servers and Access 2003. The max. number of clients is about 50...
5
by: eranshuman | last post by:
Hi, I m very new to perl I m running an API which have the Buil.pl When Im compiling using perl Build.pl I was getting error : Can't locate Module/Build.pm in @INC (@INC contains:...
0
by: devito | last post by:
hi there, for some days i try to build the boost.python tutorial "hello world" without bjam on winxp by using mingw. so i wrote a *.bat-file like the following: // --- snip...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...

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.