help-octave
[Top][All Lists]
Advanced

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

Using mkoctfile w/ native windows version of Octave


From: Hall, Benjamin
Subject: Using mkoctfile w/ native windows version of Octave
Date: Mon, 5 Mar 2007 12:14:31 -0500

I'd like to compile .oct-files for natively-compiled Octave-2.9.9+
(20070126) that Michael has made available, but am running into trouble.  

I can get access to a machine with MSVC 7.1 installed (IT policy issues).
When I try to compile any code, the compilation fails in the first #include
statement.  For example:  


hello.cc
=============================
#include <octave/oct.h>

DEFUN_DLD( hello, args, , "hello world example.")
{
        octave_value_list retval;
        octave_stdout << "Hello world.\n";

        return retval;
}
===============================

mkoctfile hello.cc


hello.cc
d:\path\include\octave-2.9.9+\octave\dMatrix.h(93) : error C2365: 'real' :
redefinition; previous definition was a 'formerly unknown identifier'
d:\path\include\octave-2.9.9+\octave\dMatrix.h(94) : error C2365: 'imag' :
redefinition; previous definition was a 'formerly unknown identifier'
d:\path\include\octave-2.9.9+\octave\dMatrix.h(299) : error C2365: 'real' :
redefinition; previous definition was a 'formerly unknown identifier'
d:\path\include\octave-2.9.9+\octave\dMatrix.h(300) : error C2365: 'imag' :
redefinition; previous definition was a 'formerly unknown identifier'
d:\path\include\octave-2.9.9+\octave\CMatrix.h(38) : fatal error C1903:
unable to recover from previous error(s); stopping compilation
LINK : fatal error LNK1181: cannot open input file 'hello.o'


Does anyone have any suggestions on what I might try to correct this?

Thanks
Ben


reply via email to

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