Build MSVC oct-files linked to pthread and fftw
Fredrik Lingvall
fl at ifi.uio.no
Sun Jan 20 15:39:19 CST 2008
Michael Goffioul wrote:
> On 1/20/08, Fredrik Lingvall <fl at ifi.uio.no> wrote:
>
>> I'm trying the build some oct-files for the MSVC version of octave.
>> I need to link them to pthread and fftw. Windows versions of these
>> libs can be found at
>>
>> http://www.fftw.org/install/windows.html
>>
>> and
>>
>> ftp://sourceware.org/pub/pthreads-win32/dll-latest/
>>
>> respectively. How do I install these libs (if they are not already
>> included in octave) so that I can build the
>> oct-files with: mkoctfile -lpthread -lfftw ...
>>
>
> Install .lib files into <octave>\lib and headers into
> <octave>\include. Binaries (.dll and .exe) should be
> installed into <octave>\bin.
>
> FFTW import library (fftw3.lib) is included with the binary
> package; linking with -lfftw3 should be enough. If you also
> need the header, just grab it from the FFTW windows
> binary package (it's not included in octave distribution).
>
Copying the fftw3.h file worked fine.
> pthread is not part of octave package. You should be able
> to link against it by installing the various files as mentioned
> above. Note however that this binary package is probably
> not compiled with MSVC8, so you might suffer some
> problems at run-time. If this happens, you might try to
> recompile pthreads with MSVC8, although I don't know if
> it is supported by pthreads sources.
>
It is a VC version of the pthread lib available at the link mentioned
above -
I'm not sure which version of VC the used though. I will try and copy
the files
as you suggested.
I have another issue as well. I use (the C99)
#include <complex.h>
in some C-files that I call from the oct C++ files (it's in C since the
code is shared
with some C mex-files for Matlab). MSVC8 don't seem to support complex.h
(I also tried
MSVC 9.0 without success). Doesn't MSVC conform to iso C99 or am I
missing some
development libs for MSVC?
Thanks for the help!
/Fredrik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.cae.wisc.edu/pipermail/help-octave/attachments/20080120/1d837a88/attachment.html
More information about the Help-octave
mailing list