All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
Mixed mode for shared libraries
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login |
|
|
Mixed mode for shared libraries - Oct. 4, '06, 10:15:31 AM
|
|
|
james_bray
Posts: 14
Joined: Dec. 8, '05,
From: Lincolnshire, UK
Status: offline
|
Hi,
Can anyone tell me if it is possible to create a mixed mode shared object, i.e. using gcc -shared -R.
I am attempting to invoke a function in a Win32 DLL (of my own) from an Interix mixed mode library (.so), and having no luck. Invoking Win32 functions from a mixed mode executable built using GCC seems to work fine.
Both the library and the associated application are built as Interix mixed mode.
Although both build fine, when running the application I get the following error:
vol_ed: error in loading shared libaries
libIDB500.so: undefined symbol: _w32_system
(vol_ed is the name of the app, libIDB500.so is the name of library and _w32_system is the function in the DLL it is trying to call.
Any help would be appreciated :-)
James Bray
Badley Geoscience Limited
< Message edited by james_bray -- Oct. 4, '06, 10:20:20 AM >
|
|
|
RE: Mixed mode for shared libraries - Oct. 4, '06, 12:21:08 PM
|
|
|
james_bray
Posts: 14
Joined: Dec. 8, '05,
From: Lincolnshire, UK
Status: offline
|
I have found one workaround.
Instead of attempting to invoke the Win32 DLL directly from the .so, I have the .so call a function in a separate static library that is then linked into the application.
This works and the Win32 DLL is called correctly.
Not exactly optimal, but a pretty decent workaround.
I would still be interested if anyone knows if Interix mixed-mode shared objects can directly call Win32 DLLs though....
Cheers,
James Bray
Badley Geoscience Limited
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|