我正在尝试使用 pantheios,我阅读了本教程-> http://binglongx.wordpress.com/2010/08/30/pantheios-logging-library-installation-and-use/
make build和make test没问题,我得到了很多“成功”
但是当我尝试包含这些文件时,我遇到了一些错误
#include <pantheios/pantheios.hpp>
#include <pantheios/inserters/integer.hpp>
#include <pantheios/inserters/pointer.hpp>
错误:
/tmp/ccuzd4cD.o: In function `pantheios_initialiser::pantheios_initialiser()':
main.cpp:(.text._ZN21pantheios_initialiserC1Ev[pantheios_initialiser::pantheios_initialiser()]+0xd): undefined reference to `pantheios_init'
main.cpp:(.text._ZN21pantheios_initialiserC1Ev[pantheios_initialiser::pantheios_initialiser()]+0x1e): undefined reference to `pantheios_exitProcess'
/tmp/ccuzd4cD.o: In function `pantheios_initialiser::~pantheios_initialiser()':
main.cpp:(.text._ZN21pantheios_initialiserD1Ev[pantheios_initialiser::~pantheios_initialiser()]+0xd): undefined reference to `pantheios_uninit'
collect2: ld returned 1 exit status
STLSOFT 没问题。
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(最新)
是链接错误吗?