tclap库的g ++编译器错误

时间:2016-12-07 15:39:55

标签: c++

您好我遇到了很多编译器错误,我不知道它们是什么意思。 我也在使用旧的g ++编译器3.4.6。我正在尝试使用tclap库。 我检查了所有tclap源文件和头文件,其中没有一个包含extern关键字。

   #include <string>
   #include <vector>
   #include <iostream>
   #include <algorithm>
   #include <tclap/CmdLine.h>
   int main(int argc, char** argv)
   {
   }   

g++ test_app.cpp -c
In file included from /system/gnu_library/lib/gcc/i686-stratus-vos/3.4.6/../../../../include/c++/3.4.6/list:66,
                 from /USERS/Dev/TumeloQ/c++/tclap/Arg.h:37,
                 from /USERS/Dev/TumeloQ/c++/tclap/SwitchArg.h:33,
                 from /USERS/Dev/TumeloQ/c++/tclap/CmdLine.h:27,
                 from test_app.cpp:6:
/system/gnu_library/lib/gcc/i686-stratus-vos/3.4.6/../../../../include/c++/3.4.6/bits/functexcept.h:40: error: previous declaration
+of `void std::__throw_bad_exception()' with C++ linkage


In file included from /USERS/Dev/TumeloQ/c++/tclap/Arg.h:58,
                 from /USERS/Dev/TumeloQ/c++/tclap/SwitchArg.h:33,
                 from /USERS/Dev/TumeloQ/c++/tclap/CmdLine.h:27,
                 from test_app.cpp:6:
/USERS/Dev/TumeloQ/c++/tclap/ArgTraits.h:79: error: template with C linkage

0 个答案:

没有答案