Does sqp example work ?

Ivan Sutoris ivan.sutoris at gmail.com
Sat Oct 18 10:25:55 CDT 2008


On Sat, Oct 18, 2008 at 4:44 PM, John W. Eaton <jwe at bevo.che.wisc.edu> wrote:
> It looks like you are not including Octave's config.h header file.
> You probably need to change the lines
>
>  #ifdef HAVE_CONFIG_H
>  #include <config.h>
>  #endif
>
> to be
>
>  #include <octave/config.h>
>
> jwe

thanks, it works now :)

So for Stefan and possibly others who encounter this, to manually
correct this bug in 3.0.1 windows installation, one should:

1. download corrected version of __qp__.cc from Mercurial archive,
this link should work:
  http://hg.savannah.gnu.org/hgweb/octave/raw-file/7799d8c38312/src/DLD-FUNCTIONS/__qp__.cc
and change include commands at the beginning as described in John's message.

2. assuming you have installed MS Visual Studio (I use 2008 Expres
edition, which can be downloaded for free), run 'Visual Studio 2008
command prompt', change dir to where you downloaded the file, run
'mkoctfile __qp__.cc'. Note - when using VS 2008, one should have
installed Octave from installer octave-3.0.1-vs2008-setup.exe, so that
compiler versions match.

3. copy the created __qp__.oct to proper directory in Octave
installation, in my case:
  C:\Program Files\Octave\libexec\octave\3.0.1\oct\i686-pc-msdosmsvc
and overwrite the old file

Ivan Sutoris


More information about the Bug-octave mailing list