我不是一位经验丰富的程序员。 我试图削减部分boost并将其直接粘贴到我的项目中,这是Visual Studio 2010中的C ++解决方案。 我这样做了:
bootstrap.bat
bjam tools/bcd
- 创建了dir 。\ bin.v2 \ tools \ bcp \ msvc-10.0 \ release \ link-static \ threading-multi \ bcp --boost=C:\Users\xxxxxxxx\boost_1_49_0 noncopyable static_assert ratio thread/locks thread chrono interprocess/mapped_region thread/recursive_mutex crc cstdint interprocess/file_mapping make_shared shared_ptr lexical_cast lexical_cast ./myboost
boost / chrono.hpp导致链接器错误:
3> playerMain.obj:错误LNK2001:未解析的外部符号“class boost :: system :: error_category const& __cdecl boost :: system :: system_category(void)”(?system_category @ system @ boost @@ YAABVerror_category @ 12 @ XZ)
3> playerMain.obj:错误LNK2001:未解析的外部符号“class boost :: system :: error_category const& __cdecl boost :: system :: generic_category(void)”(?generic_category @ system @ boost @@ YAABVerror_category @ 12 @ XZ)
我是否正确使用bcp?
我该怎么做才能让它发挥作用?