[aspectc-user] _asm in msvc unrecognized

Daniel Lohmann daniel.lohmann at informatik.uni-erlangen.de
Fri Apr 22 14:20:17 CEST 2005


Seems to be a parser problem with the inline assember syntax of MSVC. As 
a workaround you may use #ifdef __puma:

int main() {
   
#ifdef __puma
    _asm {
        mov eax, 0
    }
#endif
}


Daniel



Hans VB wrote:

> Hey,
>
> Using the MS VC 2003 Toolkit command line compiler, the following file :
>
> int main() {
>    _asm {
>        mov eax,0
>    }
>    return 0;
> }
>
> yields following error (using ac++ WPT) :
>
> main.cpp:2: error: invalid statement near token `{'
>
> Is this known? Any workarounds?
>
> Greets,
> Hans
>
> _______________________________________________
> aspectc-user mailing list
> aspectc-user at aspectc.org
> http://www.aspectc.org/mailman/listinfo/aspectc-user





More information about the aspectc-user mailing list