Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

trouble with "_asm" && "__asm" in VS 7.1 ( Visual Studio .NET 2003 Beta)

1 view
Skip to first unread message

Dmitry Novikov

unread,
Apr 3, 2003, 10:55:55 AM4/3/03
to
Compilator ( Visual Studio .NET 2003 Beta) said:
"_asm" - undeclared identifier
"__asm" - "unsupported instruction"

Why? How to resolve this problem?

Dmitry


David Lowndes

unread,
Apr 3, 2003, 4:21:46 PM4/3/03
to

Dmitry,

Have you perhaps got the "disable language extensions" /Za option set?

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq

Dmitry Novikov

unread,
Apr 4, 2003, 3:15:35 AM4/4/03
to
I am using NOT "Visual Studio .NET". I am using "Visual Studio .NET 2003
Beta Version 7.1.2292".

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

David Lowndes

unread,
Apr 4, 2003, 3:57:14 AM4/4/03
to
>I am using NOT "Visual Studio .NET". I am using "Visual Studio .NET 2003
>Beta Version 7.1.2292".
>
>In "Visual Stuidio .NET" - "asm" - not trouble.
>In "Visual Studio .NET 2003 Beta Version 7.1.2292" - "asm" - TROUBLE.

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
--

Dmitry Novikov

unread,
Apr 4, 2003, 5:03:11 AM4/4/03
to
"disable language extensions" ( /Za ) option is set now

---
#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 '}'

David Lowndes

unread,
Apr 4, 2003, 6:42:29 AM4/4/03
to
>"disable language extensions" ( /Za ) option is set now

Un-set it - you want the extensions enabled.

0 new messages