Why? How to resolve this problem?
Dmitry
Dmitry,
Have you perhaps got the "disable language extensions" /Za option set?
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
In "Visual Stuidio .NET" - "asm" - not trouble.
In "Visual Studio .NET 2003 Beta Version 7.1.2292" - "asm" - TROUBLE.
> Have you perhaps got the "disable language extensions" /Za option set?
> Dave
Have you checked if you've got the "disable language extensions" /Za
option set for the VS2003 version of your project?
FWIW I tried _asm on a beta release of VS2003 and it compiled fine for
me.
Dave
--
---
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
_asm {
int 3
}
return 0;
}
----
TestAsm.cpp(8) : error C2143: syntax error : missing ';' before '{'
TestAsm.cpp(8) : error C2065: '_asm' : undeclared identifier
TestAsm.cpp(9) : error C2059: syntax error : 'empty declaration'
TestAsm.cpp(9) : error C2143: syntax error : missing ';' before 'constant'
TestAsm.cpp(10) : error C2143: syntax error : missing ';' before '}'
Un-set it - you want the extensions enabled.