繁体   English   中英

包含文件中的C ++编译器错误

[英]c++ compiler errors in include files

我正在尝试编译c ++程序,并得到我不知道它们是什么意思的错误。 该错误似乎来自cmath中包含的cpp_type_traits.h

C ++ -o exprtk_test exprtk_simple_example_19.cpp
在/ USERS的/system/gnu_library/lib/gcc/i686-stratus-vos/3.4.6/../../../../include/c++/3.4.6/cmath:50包含的文件中/Dev/TumeloQ/cpp_includes/exprtk.hpp:39,来自exprtk_simple_example_19.cpp:24:/system/gnu_library/lib/gcc/i686-stratus-vos/3.4.6 / .. / .. / ... /include/c++/3.4.6/bits/cpp_type_traits.h:75:错误:具有C链接的模板

从您的问题中并不清楚,但是很可能您是在extern "C"块或限定符中声明模板或函数。 这是不允许的,将被视为错误。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM