I have the problem where the linker generates undefined reference errors from the inline assembly code.
int global_var = 0;
void myfunc()
{
asm(".intel_syntax noprefix\n");
asm("lea eax, global_var\n");
}
I am compiling with -masm=intel and with no optimizations or anything, using GCC 3.4.2 If anyone suffered from this inconvenience too please assist.