lmaze编译出错。谁可以指点一下?

编译安装或者制作Deb包
回复
al_crow
帖子: 5
注册时间: 2008-06-03 13:18
送出感谢: 0
接收感谢: 0

lmaze编译出错。谁可以指点一下?

#1

帖子 al_crow » 2008-09-18 22:33

我用的ubuntu8.04,libboost-filesystem-dev也安装了,但是make的时候出错,出错信息如下:

wentlv@wentlv-desktop:~/lmaze$ make
-- Configuring done
-- Generating done
-- Build files have been written to: /home/wentlv/lmaze
Linking CXX executable lmaze
./lib/liblunarmaze.a(mmaze.o): In function `MMaze::CreateTask(CResource&)':
mmaze.cpp:(.text+0x264e): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
mmaze.cpp:(.text+0x266a): undefined reference to `boost::filesystem::path::path(char const*)'
mmaze.cpp:(.text+0x267c): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
mmaze.cpp:(.text+0x2692): undefined reference to `boost::filesystem::exists(boost::filesystem::path const&)'
mmaze.cpp:(.text+0x26a4): undefined reference to `boost::filesystem::create_directory(boost::filesystem::path const&)'
mmaze.cpp:(.text+0x26b9): undefined reference to `boost::filesystem::path::native_directory_string() const'
./lib/liblunarmaze.a(mpeer2usersvr.o): In function `MPeer2UserSvr::AutoUpdateThread(void*)':
mpeer2usersvr.cpp:(.text+0xf801): undefined reference to `boost::filesystem::initial_path()'
mpeer2usersvr.cpp:(.text+0xfb63): undefined reference to `boost::filesystem::path::path(char const*)'
mpeer2usersvr.cpp:(.text+0xfb75): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
mpeer2usersvr.cpp:(.text+0xfb8b): undefined reference to `boost::filesystem::remove(boost::filesystem::path const&)'
mpeer2usersvr.cpp:(.text+0x1045c): undefined reference to `boost::filesystem::path::path(char const*)'
mpeer2usersvr.cpp:(.text+0x1046e): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
mpeer2usersvr.cpp:(.text+0x1048e): undefined reference to `boost::filesystem::path::native_file_string() const'
mpeer2usersvr.cpp:(.text+0x105d6): undefined reference to `boost::filesystem::path::path(char const*)'
mpeer2usersvr.cpp:(.text+0x105e2): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
mpeer2usersvr.cpp:(.text+0x10616): undefined reference to `boost::filesystem::path::path(char const*)'
mpeer2usersvr.cpp:(.text+0x10622): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
mpeer2usersvr.cpp:(.text+0x10636): undefined reference to `boost::filesystem::rename(boost::filesystem::path const&, boost::filesystem::path const&)'
./lib/liblunarmaze.a(msharelist.o): In function `MShareList::MapResource(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
msharelist.cpp:(.text+0x386): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
msharelist.cpp:(.text+0x3ac): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
msharelist.cpp:(.text+0x3b8): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
msharelist.cpp:(.text+0x3cf): undefined reference to `boost::filesystem::path::native_directory_string() const'
msharelist.cpp:(.text+0x415): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
msharelist.cpp:(.text+0x43b): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
msharelist.cpp:(.text+0x447): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
./lib/liblunarmaze.a(msharelist.o): In function `MShareList::AddSharePath(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
msharelist.cpp:(.text+0x153d): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
./lib/liblunarmaze.a(msharelist.o): In function `MShareList::Init(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
msharelist.cpp:(.text+0x2e3e): undefined reference to `boost::filesystem::path::default_name_check_writable()'
msharelist.cpp:(.text+0x2e49): undefined reference to `boost::filesystem::no_check(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
msharelist.cpp:(.text+0x2e4e): undefined reference to `boost::filesystem::path::default_name_check(bool (*)(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&))'
msharelist.cpp:(.text+0x2e96): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
msharelist.cpp:(.text+0x2ee6): undefined reference to `boost::filesystem::path::native_directory_string() const'
msharelist.cpp:(.text+0x30cd): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
msharelist.cpp:(.text+0x30dc): undefined reference to `boost::filesystem::path::native_directory_string() const'
msharelist.cpp:(.text+0x310c): undefined reference to `boost::filesystem::create_directory(boost::filesystem::path const&)'
./lib/liblunarmaze.a(msharelist.o): In function `MShareList::GetPathToXML(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, ResourceSize&, MGeneralKey<16>&)':
msharelist.cpp:(.text+0x497b): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
msharelist.cpp:(.text+0x4992): undefined reference to `boost::filesystem::path::path(char const*)'
msharelist.cpp:(.text+0x49a4): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
msharelist.cpp:(.text+0x6841): undefined reference to `boost::filesystem::exists(boost::filesystem::path const&)'
msharelist.cpp:(.text+0x6865): undefined reference to `boost::filesystem::last_write_time(boost::filesystem::path const&)'
msharelist.cpp:(.text+0x688b): undefined reference to `boost::filesystem::path::native_file_string() const'
msharelist.cpp:(.text+0x69e6): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
msharelist.cpp:(.text+0x69fa): undefined reference to `boost::filesystem::path::path(char const*)'
msharelist.cpp:(.text+0x6a06): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
msharelist.cpp:(.text+0x6a1d): undefined reference to `boost::filesystem::path::native_file_string() const'
./lib/liblunarmaze.a(resource.o): In function `CResourceLoader::ComputeMD5()':
resource.cpp:(.text+0x381d): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
resource.cpp:(.text+0x382f): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
resource.cpp:(.text+0x383b): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
resource.cpp:(.text+0x3869): undefined reference to `boost::filesystem::path::native_file_string() const'
resource.cpp:(.text+0x3bf8): undefined reference to `boost::filesystem::path::native_file_string() const'
./lib/liblunarmaze.a(resource.o): In function `CResourceLoader::Load(boost::filesystem::path&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
resource.cpp:(.text+0x429a): undefined reference to `boost::filesystem::path::leaf() const'
resource.cpp:(.text+0x435f): undefined reference to `boost::filesystem::path::branch_path() const'
resource.cpp:(.text+0x436e): undefined reference to `boost::filesystem::path::native_directory_string() const'
resource.cpp:(.text+0x43b1): undefined reference to `boost::filesystem::is_directory(boost::filesystem::path const&)'
resource.cpp:(.text+0x43c7): undefined reference to `boost::filesystem::last_write_time(boost::filesystem::path const&)'
resource.cpp:(.text+0x4455): undefined reference to `boost::filesystem::file_size(boost::filesystem::path const&)'
./lib/liblunarmaze.a(mspioutil.o): In function `MSpioUtil::GetConfigDir(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
mspioutil.cpp:(.text+0xcfa): undefined reference to `boost::filesystem::path::default_name_check_writable()'
mspioutil.cpp:(.text+0xd33): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
mspioutil.cpp:(.text+0xd7f): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
mspioutil.cpp:(.text+0xd8b): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
mspioutil.cpp:(.text+0xda1): undefined reference to `boost::filesystem::exists(boost::filesystem::path const&)'
mspioutil.cpp:(.text+0xdad): undefined reference to `boost::filesystem::create_directory(boost::filesystem::path const&)'
mspioutil.cpp:(.text+0xdbc): undefined reference to `boost::filesystem::path::native_directory_string() const'
mspioutil.cpp:(.text+0xde7): undefined reference to `boost::filesystem::no_check(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
mspioutil.cpp:(.text+0xdec): undefined reference to `boost::filesystem::path::default_name_check(bool (*)(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&))'
./lib/liblunarmaze.a(mspioutil.o): In function `MSpioUtil::GetFullConfPath(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
mspioutil.cpp:(.text+0x1238): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
mspioutil.cpp:(.text+0x1267): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
mspioutil.cpp:(.text+0x1273): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
mspioutil.cpp:(.text+0x128c): undefined reference to `boost::filesystem::path::native_file_string() const'
./lib/liblunarmaze.a(filefinder.o): In function `CFileFinder::Find(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)':
filefinder.cpp:(.text+0xa1): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
filefinder.cpp:(.text+0xe0): undefined reference to `boost::filesystem::is_directory(boost::filesystem::path const&)'
filefinder.cpp:(.text+0xf2): undefined reference to `boost::filesystem::exists(boost::filesystem::path const&)'
filefinder.cpp:(.text+0x105): undefined reference to `boost::filesystem::is_directory(boost::filesystem::path const&)'
filefinder.cpp:(.text+0x12d): undefined reference to `boost::filesystem::detail::dir_itr_init(boost::shared_ptr<boost::filesystem::detail::dir_itr_imp>&, boost::filesystem::path const&)'
./lib/liblunarmaze.a(filefinder.o): In function `CFileFinder::FindNext(CResourceLoader&)':
filefinder.cpp:(.text+0x290): undefined reference to `boost::filesystem::is_directory(boost::filesystem::path const&)'
filefinder.cpp:(.text+0x2c6): undefined reference to `boost::filesystem::detail::dir_itr_dereference(boost::shared_ptr<boost::filesystem::detail::dir_itr_imp> const&)'
filefinder.cpp:(.text+0x2d5): undefined reference to `boost::filesystem::path::leaf() const'
filefinder.cpp:(.text+0x353): undefined reference to `boost::filesystem::detail::dir_itr_dereference(boost::shared_ptr<boost::filesystem::detail::dir_itr_imp> const&)'
filefinder.cpp:(.text+0x36d): undefined reference to `boost::filesystem::detail::dir_itr_increment(boost::shared_ptr<boost::filesystem::detail::dir_itr_imp>&)'
filefinder.cpp:(.text+0x401): undefined reference to `boost::filesystem::exists(boost::filesystem::path const&)'
filefinder.cpp:(.text+0x433): undefined reference to `boost::filesystem::detail::dir_itr_dereference(boost::shared_ptr<boost::filesystem::detail::dir_itr_imp> const&)'
filefinder.cpp:(.text+0x45f): undefined reference to `boost::filesystem::detail::dir_itr_dereference(boost::shared_ptr<boost::filesystem::detail::dir_itr_imp> const&)'
filefinder.cpp:(.text+0x479): undefined reference to `boost::filesystem::detail::dir_itr_increment(boost::shared_ptr<boost::filesystem::detail::dir_itr_imp>&)'
./lib/liblunarmaze.a(friends.o): In function `MPeer2HeartSvr::hasFriends(unsigned long)':
friends.cpp:(.text+0x46aa): undefined reference to `boost::filesystem::initial_path()'
friends.cpp:(.text+0x46cd): undefined reference to `boost::filesystem::path::path(char const*)'
friends.cpp:(.text+0x46d9): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
friends.cpp:(.text+0x4739): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
friends.cpp:(.text+0x4745): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
friends.cpp:(.text+0x4777): undefined reference to `boost::filesystem::exists(boost::filesystem::path const&)'
./lib/liblunarmaze.a(friends.o): In function `MPeer2HeartSvr::GetFriendFriends(unsigned long)':
friends.cpp:(.text+0x4a3a): undefined reference to `boost::filesystem::initial_path()'
friends.cpp:(.text+0x4a5d): undefined reference to `boost::filesystem::path::path(char const*)'
friends.cpp:(.text+0x4a69): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
friends.cpp:(.text+0x4ac8): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
friends.cpp:(.text+0x4ad4): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
friends.cpp:(.text+0x4b1c): undefined reference to `boost::filesystem::path::native_file_string() const'
./lib/liblunarmaze.a(friends.o): In function `MPeer2HeartSvr::SetFriendFriends(unsigned long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
friends.cpp:(.text+0x4fd0): undefined reference to `boost::filesystem::initial_path()'
friends.cpp:(.text+0x4ff0): undefined reference to `boost::filesystem::path::path(char const*)'
friends.cpp:(.text+0x4ffc): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
friends.cpp:(.text+0x5016): undefined reference to `boost::filesystem::create_directory(boost::filesystem::path const&)'
friends.cpp:(.text+0x5060): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
friends.cpp:(.text+0x506c): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
friends.cpp:(.text+0x50b4): undefined reference to `boost::filesystem::path::native_file_string() const'
./lib/liblunarmaze.a(friends.o): In function `MPeer2HeartSvr::GetFriendDesc(unsigned long)':
friends.cpp:(.text+0x6aea): undefined reference to `boost::filesystem::initial_path()'
friends.cpp:(.text+0x6b0d): undefined reference to `boost::filesystem::path::path(char const*)'
friends.cpp:(.text+0x6b19): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
friends.cpp:(.text+0x6b78): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
friends.cpp:(.text+0x6b84): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
friends.cpp:(.text+0x6bcc): undefined reference to `boost::filesystem::path::native_file_string() const'
./lib/liblunarmaze.a(friends.o): In function `MPeer2HeartSvr::SetFriendAddr(unsigned long, unsigned long&, unsigned short&, bool&, unsigned long&)':
friends.cpp:(.text+0x7300): undefined reference to `boost::filesystem::initial_path()'
friends.cpp:(.text+0x7323): undefined reference to `boost::filesystem::path::path(char const*)'
friends.cpp:(.text+0x732f): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
friends.cpp:(.text+0x734a): undefined reference to `boost::filesystem::create_directory(boost::filesystem::path const&)'
friends.cpp:(.text+0x7397): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
friends.cpp:(.text+0x73a3): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
friends.cpp:(.text+0x73dc): undefined reference to `boost::filesystem::path::native_file_string() const'
./lib/liblunarmaze.a(friends.o): In function `MPeer2HeartSvr::SetFriendDesc(unsigned long, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
friends.cpp:(.text+0x7c5a): undefined reference to `boost::filesystem::initial_path()'
friends.cpp:(.text+0x7c7d): undefined reference to `boost::filesystem::path::path(char const*)'
friends.cpp:(.text+0x7c89): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
friends.cpp:(.text+0x7ca3): undefined reference to `boost::filesystem::create_directory(boost::filesystem::path const&)'
friends.cpp:(.text+0x7cf0): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
friends.cpp:(.text+0x7cfc): undefined reference to `boost::filesystem::path::operator/=(boost::filesystem::path const&)'
friends.cpp:(.text+0x7d44): undefined reference to `boost::filesystem::path::native_file_string() const'
./lib/liblunarmaze.a(getfiletype.o): In function `CGetFileType::GetFileType(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)':
getfiletype.cpp:(.text+0xb04): undefined reference to `boost::filesystem::path::path(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
getfiletype.cpp:(.text+0xb13): undefined reference to `boost::filesystem::extension(boost::filesystem::path const&)'
collect2: ld 返回 1
make[2]: *** [lmaze] 错误 1
make[1]: *** [CMakeFiles/lmaze.dir/all] 错误 2
make: *** [all] 错误 2
wentlv@wentlv-desktop:~/lmaze$
谁能告诉我是那里出错了?
谢谢
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#2

帖子 eexpress » 2008-09-18 22:35

configure过了?
● 鸣学
al_crow
帖子: 5
注册时间: 2008-06-03 13:18
送出感谢: 0
接收感谢: 0

#3

帖子 al_crow » 2008-09-19 12:04

恩,
./configure
make
make install
出错
回复

回到 “编译或打包”