[Oz] Win32 and DLLs
Ralf Scheidhauer
scheidhr at dfki.de
Wed May 5 16:00:06 CEST 1999
>> I'm trying to write a native functor to provide access to pre-compiled
>> library which expects a DLL to have been initialised before any
>> functions are called.
>>
>> After much trial I succesfully managed to link my C++ wrapper to the
>> static library, but Oz is unable to link the native functor, and I think
>> it's because I've not initialised the DLL.
>>
>> The DLL in this case is the Cygwin DLL which I decided to use to improve
>> the portability of my code. Can anybody tell me how I can initialise
>> this DLL.
>>
>> NOTE: My code works fine under Linux, but I need to have this native
>> functoron Win32 aswell.
You say that you cannot link the native functor: do you get any error
message?
How did you create the dll? Note that there is a version of "oztool"
for Windows in the OZHOME\bin directory (sorry, I know it's not
documented fully yet) which you can call using the option "-gnu" to
both create object files and DLLs.
Ralf
-
Please send submissions to users at mozart-oz.org
and administriva mail to users-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
More information about the mozart-users
mailing list