Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Paul Steckler <Paul.S<teckler@ni...> - 2011-07-22 07:31:38
> But I want to load the DLL dynamically, depending on the execution of the program.
> Originally, I had compiled the DLL using MinGW, and loaded the DLL using
> dlopen(). Once loaded, the code used dlsym() to obtain function entry points.
> The MinGW code was linked against libdl.dll.a.
I went ahead and did the experiment -- and everything works!
Our DLLs are wrappers around a commercial library. The code that loads the
DLLs uses some header files provided for using that library.
It would've been nice to compile the whole thing in MinGW. Unfortunately,
the MinGW header files don't provide the datatype _locale_t, referenced in the
commercial library's header files, and defined in the MSVC headers, and
the MinGW libraries don't provide some locale-related functions offered in MSVC
The solution was to copy some of the MSVC datatypes into the MinGW build, which
allowed the client code to compile. That client code doesn't actually use any locale-related
functions. The DLL code does use locale-related functions, so it needs to be built with
MSVC and link with its libraries.
National ICT Australia
paul DOT steckler AT nicta.com.au
The information in this e-mail may be confidential and subject to legal professional privilege and/or copyright. National ICT Australia Limited accepts no liability for any damage caused by this email or its attachments.