Boost logo

Boost :

From: Dave (better_cs_now_at_[hidden])
Date: 2005-02-05 13:42:15


Hello all,

I'm trying to use the RegEx library and am running into some link issues.
My platform is VC++ 7.1. For my project, I have specified all of the Boost
static libs so that anything I need should be available:

libboost_date_time-vc71-mt-sgd-1_32.lib
libboost_filesystem-vc71-mt-sgd-1_32.lib
libboost_prg_exec_monitor-vc71-mt-sgd-1_32.lib
libboost_program_options-vc71-mt-sgd-1_32.lib
libboost_regex-vc71-mt-sgd-1_32.lib
libboost_serialization-vc71-mt-sgd-1_32.lib
libboost_signals-vc71-mt-sgd-1_32.lib
libboost_test_exec_monitor-vc71-mt-sgd-1_32.lib
libboost_thread-vc71-mt-sgd-1_32.lib
libboost_unit_test_framework-vc71-mt-sgd-1_32.lib
libboost_wserialization-vc71-mt-sgd-1_32.lib

However, I am seeing the following errors:

LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other
libs; use /NODEFAULTLIB:library

main.obj : error LNK2019: unresolved external symbol "void * __cdecl
boost::re_detail::get_mem_block(void)"
(?get_mem_block_at_re_detail_at_boost@@YAPAXXZ) referenced in function "public:
__thiscall boost::re_detail::save_state_init::save_state_init(struct
boost::re_detail::saved_state * *,struct boost::re_detail::saved_state * *)"
(??0save_state_init_at_re_detail_at_boost@@QAE_at_PAPAUsaved_state_at_12@0_at_Z)

main.obj : error LNK2019: unresolved external symbol "void __cdecl
boost::re_detail::put_mem_block(void *)"
(?put_mem_block_at_re_detail_at_boost@@YAXPAX_at_Z) referenced in function "public:
__thiscall boost::re_detail::save_state_init::~save_state_init(void)"
(??1save_state_init_at_re_detail_at_boost@@QAE_at_XZ)
Debug/cookbook_tests.exe : fatal error LNK1120: 2 unresolved externals

What do I need to do to get my program to successfully link?

Thanks,
Dave


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk