help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging .mex files (Windows)


From: Michael Goffioul
Subject: Re: Debugging .mex files (Windows)
Date: Mon, 28 Jul 2008 22:23:41 +0200

On Mon, Jul 28, 2008 at 6:50 PM, gOS <address@hidden> wrote:
>
> I was not successful last time I attempted this, so I'm bumping the topic and
> posting more information.
[snip]
> octave:2> mex -g -v dlmread.cpp
> cc-msvc -d -c -I.  -Ic:/Software/VCLibs/include
> -IC:\LIB\Octave\include\octave-
> 3.0.1 -IC:\LIB\Octave\include\octave-3.0.1\octave -IC:\LIB\Octave\include
> -O2 -
> EHs -MD -g   -I.  dlmread.cpp -o dlmread.o
> cl -nologo -c -I. -Ic:/Software/VCLibs/include
> -IC:\LIB\Octave\include\octave-3.
> 0.1 -IC:\LIB\Octave\include\octave-3.0.1\octave -IC:\LIB\Octave\include -O2
> -EHs
>  -MD -Zi -I. dlmread.cpp -Fodlmread.o
> dlmread.cpp
> cc-msvc -d -shared  -o dlmread.mex  dlmread.o   -Wl,-export:mexFunction
> -LC:\LIB
> \Octave\lib\octave-3.0.1 -LC:\LIB\Octave\lib -loctinterp -loctave  -lcruft
> -lla
> pack -lblas -lfftw3 -lreadline  -lncurses -lhdf5 -lzlib  -lws2_32 -lkernel32
> -lh
> df5 -lzlib -lf2c -lkernel32
> link -nologo -DLL -out:dlmread.mex dlmread.o -export:mexFunction
> -LIBPATH:C:\LIB
> \Octave\lib\octave-3.0.1 -LIBPATH:C:\LIB\Octave\lib octinterp.lib octave.lib
> cru
> ft.lib lapack.lib blas.lib fftw3.lib readline.lib ncurses.lib hdf5.lib
> zlib.lib
> ws2_32.lib kernel32.lib hdf5.lib zlib.lib f2c.lib kernel32.lib

The link step is missing the debug flag (needed under MVSC, not
with gcc). So it seems there's a bug in mkoctfile.exe. For the time
being, you can run the link step manually (the "link" command)
and add the flag "-debug".

Michael.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]