If I'm not mistaken, _asm is a VC++ macro so g++ has no idea what you're talking about. To do this, just put the asm code in a .asm file, use nasm to assemble the code to a .o file and then use g++ -c to compile your c++ code and then use g++ -o outfile obj1.o obj2.o asmbleycode.o cpluspluscode.o main.o (etc...whatever, howevery many files you have) to make the final executable binary
|