I am trying to compile an old C ++ program project in Code :: Blocks using the gcc compiler, and after fixing some other problems, I hit a wall: there is a file in the project with a built-in ASM-built ASM file and
_asm {
code here
}
and the compiler refuses to compile it with "error:" _asm "was not declared in this scope."
I spent some time looking for solutions, but the only ones I can find are to add -masm=intelto the build options (which I tried and can't make it work), or convert the code asm ("code here");(which is impossible due to the large number of ASMs). Does anyone know how I can get gcc to compile this code as is, or should I refuse and use a different compiler?
source
share