Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/139.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 对“pantheios_init”的未定义引用`_C++_G++_Pantheios - Fatal编程技术网

C++ 对“pantheios_init”的未定义引用`

C++ 对“pantheios_init”的未定义引用`,c++,g++,pantheios,C++,G++,Pantheios,我正在尝试使用pantheios,我阅读了本教程-> 制作和制作测试都很好,我获得了很多“成功” 但是当我尝试包含这些文件时,我遇到了一些错误 #include <pantheios/pantheios.hpp> #include <pantheios/inserters/integer.hpp> #include <pantheios/inserters/pointer.hpp> 我很好 g++编译 g++ src/main.cpp -Wall -I./s

我正在尝试使用pantheios,我阅读了本教程->

制作和制作测试都很好,我获得了很多“成功”

但是当我尝试包含这些文件时,我遇到了一些错误

#include <pantheios/pantheios.hpp>
#include <pantheios/inserters/integer.hpp>
#include <pantheios/inserters/pointer.hpp>
我很好

g++编译

g++ src/main.cpp -Wall -I./stlsoft-1.9.112/include -I./pantheios-1.0.1-beta213/include  -L./pantheios-1.0.1-beta213/lib -o test
我的gcc版本是:gcc版本4.4.5(Debian 4.4.5-8),我构建了gcc44.unix目录

我正在使用pantheios-1.0.1-beta213(最新版本)


这是一个链接错误吗?

看来您无法链接pantheios的库。事实上,我找到了编译的方法:Q&A13
g++ src/main.cpp -Wall -I./stlsoft-1.9.112/include -I./pantheios-1.0.1-beta213/include  -L./pantheios-1.0.1-beta213/lib -o test