It would help to see the code you're trying to compile. Anyway, it looks like some other octave header needs to be included before MatrixType.h. Try to include <octave/oct.h> to see if if changes anything.
Michael. On Thu, Jun 19, 2008 at 9:54 PM, Rainey, David <[EMAIL PROTECTED]> wrote: > Hello, > > > > I have been trying to build some MEX files using mkoctfile -mex. I have > Visual Studio 2008 Professional installed and I have tried both the > regular setup for Octave and the MSVC2008 setup file as well. In each > case, for any of the files I try to compile I get one of two sets of > errors linked to Octave header files. Apparently, I never get to the > actual source code. I must be doing something stupid, but I have > searched the mailing list, forums, and Google to no avail. No one else > seems to have had this problem. > > > > The first set of errors occurs if I do not set up the environment > variables using the vcvarsall batch file included with VS2008. The > second set occurs if I do run the batch file. Ihave included only the > first few lines of each list because this seems to be a basic problem > with the configuration and I'm hoping someone will say, "Oh, stupid, you > forgot to ..." > > > > I've also tried the Mingw version because I have it installed as well. > > > > Thanks for the help. > > > > Regards, > > Dave > > > > > > > > The first error list begins: > > > > C:\Octave\include\octave-3.0.1\octave\MatrixType.h(68) : error C2629: > unexpected 'class MatrixType (' > > C:\Octave\include\octave-3.0.1\octave\MatrixType.h(68) : error C2238: > unexpected token(s) preceding ';' > > C:\Octave\include\octave-3.0.1\octave\MatrixType.h(71) : error C2629: > unexpected 'class MatrixType (' > > C:\Octave\include\octave-3.0.1\octave\MatrixType.h(71) : error C2238: > unexpected token(s) preceding ';' > > C:\Octave\include\octave-3.0.1\octave\MatrixType.h(123) : error C2143: > syntax error : missing ';' before '*' > > C:\Octave\include\octave-3.0.1\octave\MatrixType.h(123) : error C2501: > 'octave_idx_type' : missing storage-class or type specifiers > > C:\Octave\include\octave-3.0.1\octave\MatrixType.h(123) : error C2501: > 'triangular_perm' : missing storage-class or type specifiers > > C:\Octave\include\octave-3.0.1\octave\MatrixType.h(123) : warning C4183: > 'triangular_perm': member function definition looks like a ctor, but > name does not match enclosing class > > ... > > > > The second begins: > > > > c:\octave\include\octave-3.0.1\octave\MatrixType.h(68) : error C4430: > missing type specifier - int assumed. Note: C++ does not support > default-int > > c:\octave\include\octave-3.0.1\octave\MatrixType.h(68) : error C2146: > syntax error : missing ',' before identifier 'np' > > c:\octave\include\octave-3.0.1\octave\MatrixType.h(71) : error C4430: > missing type specifier - int assumed. Note: C++ does not support > default-int > > c:\octave\include\octave-3.0.1\octave\MatrixType.h(71) : error C2146: > syntax error : missing ',' before identifier 'ku' > > c:\octave\include\octave-3.0.1\octave\MatrixType.h(71) : error C2535: > 'MatrixType::MatrixType(const MatrixType::matrix_type,const int)' : > member functi > > ------------------------------------------------------------------------------------------------ > This message is for the designated recipient only and may > contain privileged, proprietary, or otherwise private information. > If you have received it in error, please notify the sender > immediately and delete the original. Any unauthorized use of > this email is prohibited. > ------------------------------------------------------------------------------------------------ > [mf2] > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Octave-dev mailing list > Octave-dev@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/octave-dev > > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev