Does sqp example work ?

John W. Eaton jwe at bevo.che.wisc.edu
Sat Oct 18 09:44:05 CDT 2008


On 18-Oct-2008, Ivan Sutoris wrote:

| On Fri, Oct 17, 2008 at 9:25 PM, John W. Eaton <jwe at bevo.che.wisc.edu> wrote:
| > Yes, it should be possible, but you'll have to edit it so that the
| > include files are found since the layout of the installed header files
| > is different from the Octave source tree.
| >
| > jwe
| 
| Thanks for the reply
| 
| I've been trying to compile __qp__.cc in 3.0.1 (i686-pc-msdosmsvc
| version from Octave Forge) with MS Visual Studio 2008, and when I try
| to run
| 
| mkoctfile __qp__.cc
| 
| I think mkoctfile finds all header files, but I get lot of errors in
| lo-error.h (I'm attaching output from compilation with verbose flag,
| include directory seems to be specified correctly). I have succesfully
| compiled mex file and hello world oct file example before, so my
| system should be set up correctly. Can anyone advise what is the
| problem? On the other hand, since it's just one specific bug and I
| have corrected version in Linux, it's not big deal for me if this is
| too much trouble...

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


More information about the Bug-octave mailing list