Error in compiling C++ S-Function with Visual C++



Sorry, the message was cut.

..
..
..
C:\Programmi\Microsoft Visual Studio 8\VC\INCLUDE\cmath(38) : error
C2143: syntax error: '{' missing before ':'
C:\Programmi\Microsoft Visual Studio 8\VC\INCLUDE\cmath(38) : error
C2059: syntax error: ':'
C:\Programmi\Microsoft Visual Studio 8\VC\INCLUDE\cmath(39) : error
C2143: syntax error: '{' missing before ':'
C:\Programmi\Microsoft Visual Studio 8\VC\INCLUDE\cmath(39) : fatal
error C1003: errors count overcomes 100. Interruption of compiling.

C:\PROGRA~1\MATLAB\R2007A\BIN\MEX.PL: Error: Compile of
'cancthrs_wrapper.c' failed.

I think that some environment variable is missing for Visual C++, but
I'm not sure, I found nothing similar on this newsgroup. The same
problem is found also with other 2005 and 2003 versions of Visual
C++. Any of you have an idea of what the source of the problem could
be?

Thank you in advance for your help.

Simone Menci
University of Florence
Italy
.



Relevant Pages

  • Windows XP Problem
    ... My project builds and run OK on my Windows 2K PC, ... missing ';' before '__stdcall'c:\Program Files\Microsoft Visual Studio .NET ...
    (microsoft.public.dotnet.general)
  • Windows 2k to XP Build Problem
    ... My project builds and run OK on my Windows 2K PC, ... missing ';' before '__stdcall'c:\Program Files\Microsoft Visual Studio .NET ...
    (microsoft.public.vc.ide_general)
  • Winbase.h problem with Windows XP
    ... My project builds and run OK on my Windows 2K PC, ... missing ';' before '__stdcall'c:\Program Files\Microsoft Visual Studio .NET ...
    (microsoft.public.vsnet.setup)
  • Re: WTL and winbase.h
    ... missing ';' before identifier 'Internal' ... missing ';' before identifier 'InternalHigh' ...
    (microsoft.public.vc.language)
  • Compile with _AFX_NO_DEBUG_CRT defined?
    ... I get syntax errors in afxtls.h where the ASSERT macro is used (line 64 in ...
    (microsoft.public.vc.mfc)