error: pasting “(“ and “1“ does not give a valid preprocessing token

Posted 柳鲲鹏

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了error: pasting “(“ and “1“ does not give a valid preprocessing token相关的知识,希望对你有一定的参考价值。

  • 错误

编译C,头文件中的宏定义,在别的系统上正常,在另外系统上编译出错。具体宏定义:

#define DECLARE_INIT_4_90(count)         int NAME_INIT_##count_90(##count)
  • 原因

编译器版本老,不支持新特性。()内的参数不能有##。

  • 解决办法

去掉括号内参数的##,如下:

#define DECLARE_INIT_4_90(count)         int NAME_INIT_##count_90(count)

以上是关于error: pasting “(“ and “1“ does not give a valid preprocessing token的主要内容,如果未能解决你的问题,请参考以下文章

Evolutionary approaches towards AI: past, present, and future

putty paste and copy

Ubuntu – Copy/paste and drag&drop not working in VMware machine with Ubuntu

dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

An error from my past projects

Codeforces Round #607 (Div. 2) C. Cut and Paste