There are many code problem compatibility (non standard C++ code) in version 2.3.0 that cause enormous problem under win32 compilers.
I recommend you to use version 2.2.0 for now... It seems that a good version is expected later this year... - Sebastien ----- Original Message ----- From: "Tomasz Mrugalski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <"mailto:dev"@lists.sourceforge.net Sent: Saturday, September 06, 2003 7:48 AM Subject: Xerces-C compilation problem in gcc3.2 win32 > Hi there > > I'm developing C++/GTK2.0/Xerces-c application, which has to be > portable. It uses xerces to read some data.Under Linux it compiles and > works fine. Problems start when I try to compile it under win32. > > GTK2 (gtkmm2.0 exactly) is reported to work fine in win32 only in > gcc3.2. (Visual C++ is has some fatal problems with gtkmm code). So I > have to use gcc. Exact version: g++ (GCC) 3.2 (mingw special > 20020817-1). It is delivered with dev-cpp 4.9.8.0 > > Now, I have to link it with xerces-c library. BUT xerces for win32 has > only librearies in .dll and .lib format (both are used in MSVC and don't > work with gcc). So I need to compile my own .a or .so library. And > here's the catch - xerces DOES NOT compile under gcc3.2/win. > > dev-cpp has a nice feature to import MSVC projects. It comes in handy as > it imports all files and needed constants. But it fails to compile anyway. > > So, here's my questions: > Does anybody have compiled xerces-c with gcc3.2/win? Are there any > compiled libraries available? (google fails to answer that questions). > > Here's compile log: > > --------------------------- > > Executing make... > make.exe -f "C:\devel\xerces-c_2_3_0-src\src\Makefile.win" all > g++.exe -c xercesc/util/MsgLoaders/Win32/Win32MsgLoader.cpp -o > xercesc/util/MsgLoaders/Win32/Win32MsgLoader.o > -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw32" > -I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include" > -I"C:/devel/xerces-c_2_3_0-src/src" -D__GNUWIN32__ -mcpu=pentiumpro > -D_M_IX86=600 -ansi -fexceptions -finline-functions -DNDEBUG > -DPLATFORM_WIN32 -D_CRTDBG_MAP_ALLOC -DPROJ_XMLPARSER -DPROJ_XMLUTIL > -DPROJ_PARSERS -DPROJ_SAX4C -DPROJ_SAX2 -DPROJ_DOM -DPROJ_VALIDATORS > -DXML_SINGLEDLL -DWIN32 -D_WINDOWS -DXML_USE_WIN32_TRANSCODER > -DXML_USE_WIN32_MSGLOADER -DXML_USE_NETACCESSOR_WINSOCK > > xercesc/util/MsgLoaders/Win32/Win32MsgLoader.cpp: In member function > `virtual > > bool xercesc_2_3::Win32MsgLoader::loadMsg(unsigned int, XMLCh*, > unsigned > int)': > xercesc/util/MsgLoaders/Win32/Win32MsgLoader.cpp:215: invalid conversion > from ` > XMLCh* const' to `wchar_t*' > > xercesc/util/MsgLoaders/Win32/Win32MsgLoader.cpp:215: invalid conversion > from ` > const XMLCh*' to `const wchar_t*' > > make.exe: *** [xercesc/util/MsgLoaders/Win32/Win32MsgLoader.o] Error 1 > > ---------------------- > > Seems that there's problem with conversion. > > Can anyone help me with this? > > Thanks in advance. > > -- > Tomasz Mrugalski, [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]