2012-01-02 2 views
0

아래 코드의 두 번째 줄에 mach_override.cExpected declaration specifiers or '...' before string constant 오류가 scplugin project에 있습니다.문자열 상수 앞에 '...'문자열 선언이 필요합니다.

asm(  
      ".text;" 
      ".align 2, 0x90;" 
      ".globl _atomic_mov64;" 
      "_atomic_mov64:;" 
      " pushl %ebp;" 
      " movl %esp, %ebp;" 
      " pushl %esi;" 
      " pushl %ebx;" 
      " pushl %ecx;" 
      " pushl %eax;" 
      " pushl %edx;" 

      // atomic push of value to an address 
      // we use cmpxchg8b, which compares content of an address with 
      // edx:eax. If they are equal, it atomically puts 64bit value 
      // ecx:ebx in address. 
      // We thus put contents of address in edx:eax to force ecx:ebx 
      // in address 
      " mov  8(%ebp), %esi;" // esi contains target address 
      " mov  12(%ebp), %ebx;" 
      " mov  16(%ebp), %ecx;" // ecx:ebx now contains value to put in target address 
      " mov  (%esi), %eax;" 
      " mov  4(%esi), %edx;" // edx:eax now contains value currently contained in target address 
      " lock; cmpxchg8b (%esi);" // atomic move. 

      // restore registers 
      " popl %edx;" 
      " popl %eax;" 
      " popl %ecx;" 
      " popl %ebx;" 
      " popl %esi;" 
      " popl %ebp;" 
      " ret" 
); 

플래그가 내 빌드 설정에 지정되어 있습니다. 누구든지 나를 도울 수 있습니까?

C language dialect = Compiler Default 
:

답변

0

은 (플래그)에 다음과 같이 변경합니다
관련 문제