help-octave
[Top][All Lists]
Advanced

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

Re: Win32 Octave problems


From: RadSurfer
Subject: Re: Win32 Octave problems
Date: Mon, 20 Aug 2007 22:42:23 -0700 (PDT)

Using msvisualc++ 6.0, I get like 102 errors.
Does this mean that vc 6.0 is just too old? or something else?

Workspace configured for Win32 Console application, which is what this
should have been
right?
The IDE was set to the Octave Include and Octave Lib paths!
--------------------Configuration: Cpp1 - Win32 Debug--------------------

Compiling...

Cpp1.cpp

c:\program files\octave\include\octave-2.9.13\octave\config.h(993) : warning
C4005: 'WIN32' : macro redefinition

        unknown(0) : see previous definition of 'WIN32'

c:\program files\octave\include\octave-2.9.13\octave\oct-types.h(70) : error
C2632: 'long' followed by 'long' is illegal

c:\program files\octave\include\octave-2.9.13\octave\oct-types.h(71) : error
C2632: 'long' followed by 'long' is illegal

c:\program files\octave\include\octave-2.9.13\octave\lo-utils.h(44) : error
C2039: 'FILE' : is not a member of 'std'

c:\program files\octave\include\octave-2.9.13\octave\lo-utils.h(45) : error
C2039: 'FILE' : is not a member of 'std'

c:\program files\octave\include\octave-2.9.13\octave\lo-utils.h(47) : error
C2039: 'FILE' : is not a member of 'std'

c:\program files\octave\include\octave-2.9.13\octave\lo-utils.h(48) : error
C2039: 'FILE' : is not a member of 'std'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(216) :
error C2629: unexpected 'double ('

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(216) :
error C2143: syntax error : missing ';' before '{'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(216) :
error C2447: missing function header (old-style formal list?)

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(217) :
error C2377: 'Complex' : redefinition; typedef cannot be overloaded with any
other symbol

        c:\program files\octave\include\octave-2.9.13\octave\oct-cmplx.h(29)
: see declaration of 'Complex'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(217) :
error C2065: 'r' : undeclared identifier

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(217) :
error C2296: '*' : illegal, left operand has type 'class
std::complex<double> *(__cdecl *)(const int *,unsigned int)'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(217) :
error C2061: syntax error : identifier 'Complex'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(217) :
error C2143: syntax error : missing ')' before ';'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(217) :
error C2143: syntax error : missing ';' before ')'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(217) :
error C2143: syntax error : missing ';' before ')'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(217) :
warning C4552: '<' : operator has no effect; expected operator with
side-effect

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(217) :
error C2143: syntax error : missing ';' before ')'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(222) :
error C2143: syntax error : missing ',' before '*'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(222) :
error C2059: syntax error : '*'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(222) :
error C2065: 'n' : undeclared identifier

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(222) :
error C2065: 'x' : undeclared identifier

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(222) :
error C2109: subscript requires array or pointer type

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(224) :
error C2556: 'double *__cdecl Complex(const int *,unsigned int)' :
overloaded function differs only by return type from 'class
std::complex<double> *__cdecl Complex(const int 

*,unsigned int)'

        c:\program
files\octave\include\octave-2.9.13\octave\mx-inlines.cc(217) : see
declaration of 'Complex'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(224) :
error C2371: 'Complex' : redefinition; different basic types

        c:\program
files\octave\include\octave-2.9.13\octave\mx-inlines.cc(217) : see
declaration of 'Complex'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(224) :
error C2065: 'mx_inline_make_complex' : undeclared identifier

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(227) :
error C2143: syntax error : missing ';' before '*'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(227) :
error C2433: 'Complex' : 'inline' not permitted on data declarations

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(227) :
error C2373: 'Complex' : redefinition; different type modifiers

        c:\program
files\octave\include\octave-2.9.13\octave\mx-inlines.cc(217) : see
declaration of 'Complex'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(227) :
error C2143: syntax error : missing ',' before '*'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(227) :
error C2059: syntax error : '*'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(227) :
error C2501: 'mx_inline_change_sign' : missing storage-class or type
specifiers

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(227) :
error C2106: '=' : left operand must be l-value

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(227) :
error C2061: syntax error : identifier 'Complex'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(227) :
error C2143: syntax error : missing ')' before ';'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(227) :
error C2143: syntax error : missing ';' before ')'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(227) :
error C2143: syntax error : missing ';' before ')'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(227) :
warning C4552: '<' : operator has no effect; expected operator with
side-effect

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(227) :
error C2143: syntax error : missing ';' before ')'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(229) :
error C2143: syntax error : missing ',' before '*'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(229) :
error C2059: syntax error : '*'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(229) :
error C2065: 'real' : undeclared identifier

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(229) :
error C2109: subscript requires array or pointer type

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(230) :
error C2143: syntax error : missing ',' before '*'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(230) :
error C2059: syntax error : '*'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(230) :
error C2065: 'imag' : undeclared identifier

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(230) :
error C2109: subscript requires array or pointer type

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(231) :
error C2143: syntax error : missing ';' before '*'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(231) :
error C2433: 'Complex' : 'inline' not permitted on data declarations

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(231) :
error C2373: 'Complex' : redefinition; different type modifiers

        c:\program
files\octave\include\octave-2.9.13\octave\mx-inlines.cc(217) : see
declaration of 'Complex'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(231) :
error C2143: syntax error : missing ',' before '*'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(231) :
error C2059: syntax error : '*'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(231) :
error C2501: 'mx_inline_conj_dup' : missing storage-class or type specifiers

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(231) :
error C2106: '=' : left operand must be l-value

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(231) :
error C2061: syntax error : identifier 'Complex'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(231) :
error C2143: syntax error : missing ')' before ';'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(231) :
error C2143: syntax error : missing ';' before ')'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(231) :
error C2143: syntax error : missing ';' before ')'

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(231) :
warning C4552: '<' : operator has no effect; expected operator with
side-effect

c:\program files\octave\include\octave-2.9.13\octave\mx-inlines.cc(231) :
error C2143: syntax error : missing ';' before ')'

c:\program files\octave\include\octave-2.9.13\octave\boolmatrix.h(35) :
warning C4275: non dll-interface class 'Array2<bool>' used as base for
dll-interface class 'boolMatrix'

        c:\program
files\octave\include\octave-2.9.13\octave\boolmatrix.h(34) : see declaration
of 'boolMatrix'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2462: 'MArray2' : cannot define a type in a 'new-expression'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2143: syntax error : missing ';' before '&'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2936: 'MArray2<T>' : template-class-id redefined as a global data variable

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2059: syntax error : ';'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2065: 'T' : undeclared identifier

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2954: template definitions cannot nest

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2143: syntax error : missing ';' before '&'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2936: 'MArray2<`template-parameter257'>' : template-class-id redefined as a
global data variable

        c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) :
see declaration of 'MArray2<`template-parameter257'>'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2086: 'MArray2<`template-parameter257'>' : redefinition

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2059: syntax error : ';'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2954: template definitions cannot nest

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2143: syntax error : missing ';' before '<template-id>'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2936: 'MArray2<`template-parameter257'>' : template-class-id redefined as a
global data variable

        c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) :
see declaration of 'MArray2<`template-parameter257'>'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2501: 'MArray2<`template-parameter257'>' : missing storage-class or type
specifiers

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2371: 'MArray2<`template-parameter257'>' : redefinition; different basic
types

        c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) :
see declaration of 'MArray2<`template-parameter257'>'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2059: syntax error : ';'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2143: syntax error : missing ';' before '&'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2954: template definitions cannot nest

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2143: syntax error : missing ';' before '<template-id>'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2936: 'MArray2<`template-parameter257'>' : template-class-id redefined as a
global data variable

        c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) :
see declaration of 'MArray2<`template-parameter257'>'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2501: 'MArray2<`template-parameter257'>' : missing storage-class or type
specifiers

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2371: 'MArray2<`template-parameter257'>' : redefinition; different basic
types

        c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) :
see declaration of 'MArray2<`template-parameter257'>'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2059: syntax error : ';'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2143: syntax error : missing ';' before '&'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2954: template definitions cannot nest

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2143: syntax error : missing ';' before '+'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2936: 'MArray2<`template-parameter257'>' : template-class-id redefined as a
global data variable

        c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) :
see declaration of 'MArray2<`template-parameter257'>'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2501: 'MArray2<`template-parameter257'>' : missing storage-class or type
specifiers

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2371: 'MArray2<`template-parameter257'>' : redefinition; different basic
types

        c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) :
see declaration of 'MArray2<`template-parameter257'>'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2059: syntax error : ';'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2954: template definitions cannot nest

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2143: syntax error : missing ';' before '-'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2936: 'MArray2<`template-parameter257'>' : template-class-id redefined as a
global data variable

        c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) :
see declaration of 'MArray2<`template-parameter257'>'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2501: 'MArray2<`template-parameter257'>' : missing storage-class or type
specifiers

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2371: 'MArray2<`template-parameter257'>' : redefinition; different basic
types

        c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) :
see declaration of 'MArray2<`template-parameter257'>'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2059: syntax error : ';'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2954: template definitions cannot nest

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2143: syntax error : missing ';' before '<template-id>'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2936: 'MArray2<`template-parameter257'>' : template-class-id redefined as a
global data variable

        c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) :
see declaration of 'MArray2<`template-parameter257'>'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2501: 'MArray2<`template-parameter257'>' : missing storage-class or type
specifiers

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2371: 'MArray2<`template-parameter257'>' : redefinition; different basic
types

        c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) :
see declaration of 'MArray2<`template-parameter257'>'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2059: syntax error : ';'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2143: syntax error : missing ';' before '+'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : error
C2146: syntax error : missing ';' before identifier 'T'

c:\program files\octave\include\octave-2.9.13\octave\marray2.h(36) : fatal
error C1003: error count exceeds 100; stopping compilation

Error executing cl.exe.



Cpp1.exe - 102 error(s), 5 warning(s)



the Source file is:
/* CentOS 5

   Sun 19 Aug 2007 08:35:00 PM EDT 

   

 (Under linux, it does work 100%)
  $ mkoctfile --link-stand-alone hello.cc -o hello -Loctave-2.9.13

  ]$ ./hello

   Hello Octave world!

    11 12

    21 22

*/



#include <iostream>

#include <C:\Program Files\Octave\include\octave-2.9.13\octave\oct.h>

int main (void) {

       std::cout << "Hello Octave world!\n";



       int n = 2;



       Matrix a_matrix = Matrix (n, n);



       for (octave_idx_type i = 0; i < n; i++)

         {

           for (octave_idx_type j = 0; j < n; j++)

             {

               a_matrix(i,j) = (i+1)*10 + (j+1);

             }

         }

       std::cout << a_matrix;

       return 0;

 }
-- 
View this message in context: 
http://www.nabble.com/Win32-Octave-problems-tf4302665.html#a12248693
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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