undefined引用带有stdcall-fixup的cygwin

时间:2015-03-06 08:00:01

标签: c++ gcc g++ cygwin

我正在使用Cygwin 32位构建一些东西。它非常大,因此它在自己的.cpp文件中定义了几个头文件。我甚至使用了一些c ++ boost标头,将它们连接起来。我在x64 Eclipse Luna上这样做。该项目由C和C ++文件组成。每次我构建项目时,我都会对头文件中的所有函数(包括来自boost的函数)持续获取未定义的引用错误,尽管我已正确链接了boost库。不幸的是,我没有足够的声誉来附加截图(没有任何意义)。但下面是错误的示例。我甚至尝试使用选项enable-stdcall-fixup进行链接无效。

./caches.o:caches.cpp:(.text+0x1957): undefined reference to `boost::filesystem::detail::directory_iterator_construct(boost::filesystem::directory_iterator&, boost::filesystem::path const&, boost::system::error_code*)'
./caches.o:caches.cpp:(.text$_ZNK5boost10filesystem16filesystem_error4whatEv[__ZNK5boost10filesystem16filesystem_error4whatEv]+0xa2): undefined reference to `boost::filesystem::path::codecvt()'
./fscore.o:fscore.cpp:(.text+0xa1): undefined reference to `btree_init()'

请帮忙。

真诚的,蝙蝠侠

0 个答案:

没有答案