未定义的引用`pantheios_init`

时间:2012-05-29 15:58:16

标签: c++ g++ pantheios

我正在尝试使用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 (最新)

是链接错误吗?

0 个答案:

没有答案