[Uml-devel] umbrello compile problem on win32
Ralf Habacker
ralf.habacker at freenet.de
Mon Apr 21 06:59:56 UTC 2008
Hi all,
in the last time there was a boost dependency added to umbrello. Since
that time umbrello could not be compiled on windows using Microsoft
Visual C++ Compiler. The compiler log messages contains the following
error messages:
[ 8%] Building CXX object
umbrello/umbrello/CMakeFiles/codeimport.dir/codeimport/cppimport.obj cppimport.cpp
e:\daten\kde\emerge-msvc-root\include\boost-1_34_0\boost/spirit/iterator/impl/file_iterator.ipp(16)
C:\Programme\Microsoft Visual Studio 8\VC\INCLUDE\xstring(2044) : error C2620: member 'std::basic_string<_Elem>::_Bxty::_Buf' of union 'std
:basic_string<_Elem>::_Bxty' has user-defined constructor or non-trivial default constructor
with
[
_Elem=QChar
]
C:\Programme\Microsoft Visual Studio 8\VC\INCLUDE\xstring(2046)
: see reference to class template instantiation 'std::basic_string<Elem>::_Bxty' being compiled
with
[
_Elem=QChar
]
c:\downloads\kdesvn\trunk\kde\kdesdk\umbrello\umbrello\codeimport\kdevcppparser\position.h(43)
: see reference to class template intantiation 'std::basic_string<_Elem>' being compiled
with
[
_Elem=QChar
]
NMAKE : fatal error U1077: 'C:\PROGRA~1\MID05A~1\VC\bin\cl.exe' : return code '0x2'
Stop.
Win developers added a related note in the kdesdk toplevel CMakeLists.txt
# Both MSVC and SunPRO CC have a problem with position.h; we try to put a
# QChar into a spirit iterator, which, after a bunch of futzing, ends up in
# the STL string_ref templates, which use
#
# union {
# size_type _C_size; // Number of actual data values stored
# _CharT _C_dummy; // force the alignment of the first char
# } _C_size; // named to work around an HP aCC 3.30 bug
#
# and you can't have a class which requires an initializer in a union.
#
The question now is how this could be fixed ?
Regards
Ralf
More information about the umbrello-devel
mailing list