Skip to content

Undefined reference when Linking CXX executable blockmon #6

@10186937

Description

@10186937

Sorry to bother you again, jmmlmendes.
This time , I chose the release v1.1 .
Since I was forbidden to accesshttp://pugixml.googlecode.com/files/pugixml-1.2.tar.gz(in china.)
I download pugixml-1.2.tar.gz fromhttps://github.com/zeux/pugixml/releases, put it in lib/external and tar xzf pugixml-1.2.tar.gz .
Then do cmake -DWITH_DAEMON=ON . & make in base dir.
The error I get is:

Scanning dependencies of target blockmon
[ 98%] Building CXX object CMakeFiles/blockmon.dir/core/blockmon.cpp.o
Linking CXX executable blockmon
CMakeFiles/blockmon.dir/core/blockmon.cpp.o:In func ‘blockmon::PoolManager::create_pool(pugi::xml_node)’:
/home/qlq/latest_blockmon/blockmon-1.1/core/scheduler/PoolManager.hpp:101:对‘pugi::xml_node::attribute(char const*) const’ Undefined reference
/home/qlq/latest_blockmon/blockmon-1.1/core/scheduler/PoolManager.hpp:101:对‘pugi::xml_attribute::value() const’Undefined reference
/home/qlq/latest_blockmon/blockmon-1.1/core/scheduler/PoolManager.hpp:102:对‘pugi::xml_node::attribute(char const*) const’Undefined reference
..............
libblockmoncore.so:对‘pugi::xml_attribute::set_value(char const*)’Undefined reference
libblockmoncore.so:对‘vtable for IPFIX::CollectorOffsetCache’Undefined reference
collect2: Error:ld return1
make[2]: *** [blockmon] Error 1
make[1]: *** [CMakeFiles/blockmon.dir/all] Error 2
make: *** [all] Error 2

what's wrong?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions