Boost logo

Boost Users :

Subject: [Boost-users] Boost filesystem v3 with Qt.
From: Surya Kiran Gullapalli (suryakiran.gullapalli_at_[hidden])
Date: 2011-06-05 15:04:21


Hello,
Sorry for cross-posting. I'm facing an issue with Qt (4.7.2, installed
from Qt installer) with Boost.Filesystem v3 (1.46.1) on VS2008.

I'm facing linker errors with QString::toStdWString when /Zc:wchar_t is set

like this:
unresolved external symbol "__declspec(dllimport) public: class
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> > __thiscall QString::toStdWString(void)const
" (__imp_?toStdWString_at_QString@@QBE?AV?$basic_string@_WU?$char_traits@_W_at_std@@V?$allocator@_W_at_2@@std@@XZ)
referenced in function "private: void __thiscall
DirView::readDirectory(class QModelIndex const &)"
(?readDirectory_at_DirView@@AAEXABVQModelIndex@@@Z)

and linker errors with std::codecvt when /Zc:wchar_t- is set

like this:
unresolved external symbol "__declspec(dllimport) public: static class
std::codecvt<unsigned short,char,int> const & __cdecl
boost::filesystem3::path::codecvt(void)"
(__imp_?codecvt_at_path@filesystem3_at_boost@@SAABV?$codecvt_at_GDH@std@@XZ)
referenced in function "public: __thiscall
boost::filesystem3::path::path<class std::basic_string<unsigned
short,struct std::char_traits<unsigned short>,class
std::allocator<unsigned short> > >(class std::basic_string<unsigned
short,struct std::char_traits<unsigned short>,class
std::allocator<unsigned short> > const &,void *)"
(??$?0V?$basic_string_at_GU?$char_traits_at_G@std@@V?$allocator_at_G@2@@std@@@path_at_filesystem3@boost@@QAE_at_ABV?$basic_string_at_GU?$char_traits_at_G@std@@V?$allocator_at_G@2@@std@@PAX_at_Z)

How can i use Qt with boost filesystem ?

Thanks in advance,
Surya


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