【发布时间】:2014-03-30 18:51:18
【问题描述】:
当我为 Linux 编译我的程序时,我得到了这个错误:
error: storage class specifiers invalid for parameter declarations
这只发生在 Linux 上,因为它在 Windows 上编译得很好。 代码行是:
int Start(static const char* m_vertexshader, static const char* m_fragmentshader);
如果您需要任何详细信息或信息,请使用 GNU C 编译器 (g++) 询问
【问题讨论】:
-
认为它需要它,但事实证明它不需要。非常感谢!现在工作:)
标签: c++ linux codeblocks declaration gnu