error: ‘asm’ undeclared (first use in this function)

后端 未结 3 922
醉梦人生
醉梦人生 2021-02-20 06:27

I am getting the following error during compilation:

error: ‘asm’ undeclared (first use in this function)
 EXCHANGE( s, *(a) );
 ^

in a header

3条回答
  •  余生分开走
    2021-02-20 06:49

    asm is a gcc extension, Hence you can not used with flags like std=c99 or ansi

    More details at https://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html#C-Extensions

提交回复
热议问题