Operating System - HP-UX
1833609 Members
4198 Online
110062 Solutions
New Discussion

32 bit app with 64 bit shared library

 
David Turnbull
New Member

32 bit app with 64 bit shared library

Is it possible to combine a 64-bit shared library with a 32-bit application.

Currently we have a 32-bit app which calls a function in our shared library, passing in some structs and pointers to be updated.

The shared library updates the data and returns.

We have to make the shared library 64-bit as it now requires shared memory segments > 3Gig. This segment is not required by the 32-bit application.

Is it possible to have the 32-bit app link with the 64-bit shared library ?
1 REPLY 1
Cheryl Griffin
Honored Contributor

Re: 32 bit app with 64 bit shared library

Look here for your answer about program compatibility.
Developers Resource page -
http://devresource.hp.com/STK/ia64from11x.html

Here's an excerpt:
"Your software is not a library. Since 32-bit applications can only link with 32-bit libraries and 64-bit applications can only link with 64-bit libraries, if you plan to provide support for both 32-bit applications and 64-bit applications, you must provide both 32-bit and 64-bit versions of your libraries. "
"Downtime is a Crime."