Boost logo

Boost Users :

From: peter_foelsche_at_[hidden]
Date: 2008-05-01 12:08:13


this problem came from trying to create a 64bit executable using 32bit libraries.

It seems that bjam does not find the compiler via the path environment variable but somehow directly and thus by default found the 32bit compiler and created 32bit libraries

 

________________________________

From: FOELSCHE,PETER (A-SantaClara,ex1)
Sent: Wednesday, April 30, 2008 17:27
To: 'boost-users_at_[hidden]'
Subject: undefined symbols

 

------ Build started: Project: boost_memory_mapped_io, Configuration: Release x64 ------

Linking...

main.obj : error LNK2001: unresolved external symbol "class boost::filesystem::file_status __cdecl boost::filesystem::detail::status_api(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class boost::system::error_code &)" (?status_api_at_detail@filesystem_at_boost@@YA?AVfile_status_at_23@AEBV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@AEAVerror_code_at_system@3@@Z)

main.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::get_system_category(void)" (?get_system_category_at_system@boost@@YAAEBVerror_category_at_12@XZ)

main.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::get_posix_category(void)" (?get_posix_category_at_system@boost@@YAAEBVerror_category_at_12@XZ)

main.obj : error LNK2001: unresolved external symbol "struct std::pair<class boost::system::error_code,unsigned __int64> __cdecl boost::filesystem::detail::file_size_api(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?file_size_api_at_detail@filesystem_at_boost@@YA?AU?$pair_at_Verror_code_at_system@boost@@_K_at_std@@AEBV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@5@@Z)

C:\DocumentsAndSettings\pfoelsch\MyDocuments\boost_memory_mapped_io\x64\Release\boost_memory_mapped_io.exe : fatal error LNK1120: 4 unresolved externals

Build log was saved at "file://c:\DocumentsAndSettings\pfoelsch\MyDocuments\boost_memory_mapped_io\boost_memory_mapped_io\x64\Release\BuildLog.htm"

boost_memory_mapped_io - 5 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

 

see attached main.cpp

 

I link with

 

boost_system-vc80-mt-1_35.lib

boost_filesystem-vc80-mt-1_35.lib

 

and other boost libraries which are referenced directly.

I work on 64bit XP compiling for 64bit.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net