[scilab-Users] Link error 236
Mike Page
Mike at Page-One.Waitrose.com
Wed May 11 11:50:58 CEST 2011
Hi Jasper,
Yes, I agree. Scilab's DLL is the one supplied in the distribution, so it
would have been built in a different environment I guess. As far as I can
see, the LIB file is not included in the Scilab distribution, just the DLL.
Is that right? If so, I can't build my C code against the Scilab version of
the library. I guess I could substitute my DLL for the one in the Scilab
distribution instead? But that sounds even harder...
Mike.
-----Original Message-----
From: jasper van baten [mailto:jasper at amsterchem.com]
Sent: 11 May 2011 10:43
To: users at lists.scilab.org; users at lists.scilab.org
Subject: RE: [scilab-Users] Link error 236
Hello Mike,
At 11:05 5/11/2011, Mike Page wrote:
>My C code includes the FFTW library libfftw3-3.dll, so this is
>referenced within my DLL (foo.dll). Scilab itself uses the same
>FFTW library. When Scilab tries to load my DLL, it also tries to
>load my FFTW library, but this is already loaded. This gives rise
>to duplicate DLL entry points.
>
>The simple workaround is to use a different library - this can be
>done by rebuilding FFTW with a different name (e.g. MyFftw.dll and
>MyFftw.lib) and then using that within my C code.
DLLs that reference a DLL that is already loaded should not have
problem loading (e.g. your DLL will also reference kernel32.dll,
etc). So Scilab's libfftw3-3.dll must be different than yours...
Hence, you could also resolve the problem by referencing the import
lib that matches Scilab's libfftw3-3.dll.
Best wishes,
Jasper.
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.900 / Virus Database: 271.1.1/3628 - Release Date: 05/10/11
07:35:00
More information about the users
mailing list