Boost logo

Boost Users :

Subject: [Boost-users] filesystem3 with qt at windows
From: Eirik Haaversen (eirik.haaversen_at_[hidden])
Date: 2011-01-04 10:47:21


Hi all,
I'm trying to build the tut2 example in boost version 1.44 using qt's
build system (.pro) file.
I get the following error when I run nmake after qmake:

Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

         e:\terratec\projects\common\Qt\4.6.3\bin\qmake.exe -win32 -o
Makefile fr
edag.pro
         
e:\terratec\projects\common\MicrosoftVisualStudio9.0\VC\BIN\nmake.exe -f
  Makefile.Debug

Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

         link /LIBPATH:"e:\terratec\projects\common\Qt\4.6.3\lib"
/NOLOGO /DEBUG
/SUBSYSTEM:CONSOLE /MANIFEST
/MANIFESTFILE:"debug\fredag.intermediate.manifest"
/OUT:debug\fredag.exe @C:\DOCUME~1\builder\LOCALS~1\Temp\nmEB2.tmp
fredag.obj : error LNK2019: unresolved external symbol "private: static
class st
d::codecvt<unsigned short,char,int> const * & __cdecl
boost::filesystem3::path::
wchar_t_codecvt_facet(void)"
(?wchar_t_codecvt_facet_at_path@filesystem3_at_boost@@CAA
APBV?$codecvt_at_GDH@std@@XZ) referenced in function "public: static class
std::cod
ecvt<unsigned short,char,int> const & __cdecl
boost::filesystem3::path::codecvt(
void)" (?codecvt_at_path@filesystem3_at_boost@@SAABV?$codecvt_at_GDH@std@@XZ)
fredag.obj : error LNK2019: unresolved external symbol "void __cdecl
boost::file
system3::path_traits::convert(unsigned short const *,unsigned short
const *,clas
s std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char
> > &,class std::codecvt<unsigned short,char,int> const &)"
(?convert_at_path_trait
s_at_filesystem3@boost@@YAXPBG0AAV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocato

r_at_D@2@@std@@ABV?$codecvt_at_GDH@5@@Z) referenced in function "public: class
std::ba
sic_string<char,struct std::char_traits<char>,class std::allocator<char>
> const
  __thiscall boost::filesystem3::path::string(class
std::codecvt<unsigned short,c
har,int> const &)const "
(?string_at_path@filesystem3_at_boost@@QBE?BV?$basic_string_at_D
U?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@ABV?$codecvt_at_GDH@5@@Z)
fredag.obj : error LNK2019: unresolved external symbol "void __cdecl
boost::file
system3::path_traits::convert(char const *,char const *,class
std::basic_string<
unsigned short,struct std::char_traits<unsigned short>,class
std::allocator<unsi
gned short> > &,class std::codecvt<unsigned short,char,int> const &)"
(?convert@
path_traits_at_filesystem3@boost@@YAXPBD0AAV?$basic_string_at_GU?$char_traits_at_G@std@@V

?$allocator_at_G@2@@std@@ABV?$codecvt_at_GDH@5@@Z) referenced in function
"void __cdec
l boost::filesystem3::path_traits::convert(char const *,class
std::basic_string<
unsigned short,struct std::char_traits<unsigned short>,class
std::allocator<unsi
gned short> > &,class std::codecvt<unsigned short,char,int> const &)"
(?convert@
path_traits_at_filesystem3@boost@@YAXPBDAAV?$basic_string_at_GU?$char_traits_at_G@std@@V?

$allocator_at_G@2@@std@@ABV?$codecvt_at_GDH@5@@Z)
debug\fredag.exe : fatal error LNK1120: 3 unresolved externals
NMAKE : fatal error U1077:
'e:\terratec\projects\common\MicrosoftVisualStudio9.0
\VC\BIN\link.EXE' : return code '0x460'
Stop.
NMAKE : fatal error U1077:
'e:\terratec\projects\common\MicrosoftVisualStudio9.0
\VC\BIN\nmake.exe' : return code '0x2'
Stop.

It builds fine on Linux and Mac.
I appreciate all hints.
BR. Eirik


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