由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Undefined symbols for architecture x86_64: 求助
相关主题
一个诡异的const_cast问题不用头文件,如何调用函数?C++
question about const reference(面试题) 给code挑毛病(updated with multiple choices)
function declarationwhich style do you prefer?
is this behavior undefined?conversion between const to nonconst
有关objec access path的问题关于const_cast,地址一样,值不同?
c++环境入门问题a pointer to a const addr
C++ 的 问题why copy assignment operator returns non-const type?
[合集] 请问-fno-implicit-templates的用处warning: returning address of local variable or temporary
相关话题的讨论汇总
话题: test话题: unit话题: boost话题: const话题: referenced
进入Programming版参与讨论
1 (共1页)
x******a
发帖数: 6336
1
装了一个quantlib在mac os x上,然后运行那个example,结果得到下面一堆。请教应
该link或者编译?
谢谢!
instruction在这里:
http://quantlib.org/install/macosx.shtml
run example
g++ -I/opt/local/include/ -I/opt/local/include/boost BermudanSwaption.cpp
-o bermudanswaption -L/opt/local/lib/ -lQuantLib
以后的error:
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.o
"vtable for boost::unit_test::unit_test_log_t", referenced from:
boost::unit_test::unit_test_log_t::unit_test_log_t()in ccLPRGF8.o
boost::unit_test::unit_test_log_t::~unit_test_log_t()in ccLPRGF8.o
"boost::unit_test::unit_test_log_t::set_checkpoint(boost::unit_test::basic
_cstring, unsigned long, boost::unit_test::basic_cstring const>)", referenced from:
BermudanSwaptionTest::testCachedValues() in ccLPRGF8.o
QuantLib::detail::quantlib_test_case::operator()() constin ccLPRGF8.o
"boost::test_tools::tt_detail::check_impl(boost::test_tools::predicate_
result const&, boost::unit_test::lazy_ostream const&, boost::unit_test::
basic_cstring, unsigned long, boost::test_tools::tt_detail::tool
_level, boost::test_tools::tt_detail::check_type, unsigned long, ...)",
referenced from:
BermudanSwaptionTest::testCachedValues() in ccLPRGF8.o
QuantLib::detail::quantlib_test_case::operator()() constin ccLPRGF8.o
"boost::unit_test::ut_detail::normalize_test_case_name(boost::unit_test::
basic_cstring)", referenced from:
boost::unit_test::make_test_case(boost::unit_test::callback0 unit_test::ut_detail::unused> const&, boost::unit_test::basic_cstring const>)in ccLPRGF8.o
"boost::unit_test::test_case::test_case(boost::unit_test::basic_cstring<
char const>, boost::unit_test::callback0 > const&)", referenced from:
boost::unit_test::make_test_case(boost::unit_test::callback0 unit_test::ut_detail::unused> const&, boost::unit_test::basic_cstring const>)in ccLPRGF8.o
"boost::unit_test::test_suite::test_suite(boost::unit_test::basic_cstring<
char const>)", referenced from:
BermudanSwaptionTest::suite() in ccLPRGF8.o
"boost::unit_test::test_suite::add(boost::unit_test::test_unit*, unsigned
long, unsigned int)", referenced from:
BermudanSwaptionTest::suite() in ccLPRGF8.o
"boost::unit_test::unit_test_log_t::operator<<(boost::unit_test::log::
begin const&)", referenced from:
BermudanSwaptionTest::testCachedValues() in ccLPRGF8.o
"boost::unit_test::unit_test_log_t::operator()(boost::unit_test::log_level
)", referenced from:
BermudanSwaptionTest::testCachedValues() in ccLPRGF8.o
"boost::unit_test::ut_detail::entry_value_collector::operator<<(boost::
unit_test::lazy_ostream const&) const", referenced from:
BermudanSwaptionTest::testCachedValues() in ccLPRGF8.o
"boost::unit_test::ut_detail::entry_value_collector::~entry_value_
collector()", referenced from:
BermudanSwaptionTest::testCachedValues() in ccLPRGF8.o
"QuantLib::flatRate(QuantLib::Date const&, double, QuantLib::DayCounter
const&)", referenced from:
BermudanSwaptionTest::testCachedValues() in ccLPRGF8.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
1 (共1页)
进入Programming版参与讨论
相关主题
warning: returning address of local variable or temporary有关objec access path的问题
C++ class cross reference problemc++环境入门问题
C++ Q05: pointer to constant variableC++ 的 问题
boost drives me crazy!! Question![合集] 请问-fno-implicit-templates的用处
一个诡异的const_cast问题不用头文件,如何调用函数?C++
question about const reference(面试题) 给code挑毛病(updated with multiple choices)
function declarationwhich style do you prefer?
is this behavior undefined?conversion between const to nonconst
相关话题的讨论汇总
话题: test话题: unit话题: boost话题: const话题: referenced