unsigned long strcpy0(char* dst,const char* src)
{
__asm__ __volatile__
(
".intel_syntax noprefix\n"
"POS2:\n"
"lodsb\n"
"stosb\n"
"test al,al\n"
"jnz POS2\n"
:
:
:"rax","bl"
);
}
上面代码使用gcc编译的时候报错,请问该怎么解决:
gcc -masm=intel -O3 -c -o test.o test.c
test.c: Assembler messages:
test.c:7: Error: symbol POS2' is already defined
POS2' is already defined
test.c:7: Error: symbol
test.c:7: Error: symbol `POS2' is already defined