When I create a configuration for minGW and try a POCO build, here is a sample of what happens:-
make -C CppUnit
make[1]: Entering directory `/andrew/tools/poco-1.1.2/CppUnit'
** Compiling src/CppUnitException.cpp (debug, shared)
g++ -Iinclude -Ic:/everything/andrew/tools/poco-1.1.2/Foundation/include -Ic:/everything/andrew/tools/poco-1.1.2/XML/include -Ic:/everything/andrew/tools/poco-1.1.2/Util/include -Ic:/everything/andrew/tools/poco-1.1.2/Net/include -Ic:/everything/andrew/tools/poco-1.1.2/CppUnit/include -DPOCO_BUILD_HOST=VOYAGER -D_XOPEN_SOURCE=500 -D_REENTRANT -D_THREAD_SAFE -g -D_DEBUG -DPOCO_DLL -c src/CppUnitException.cpp -o c:/everything/andrew/tools/poco-1.1.2/CppUnit/obj/MINGW32_NT-5.0/i686/debug_shared/CppUnitException.o
src/CppUnitException.cpp:14: error: definition of static data member 'CppUnit::CppUnitException::CPPUNIT_UNKNOWNFILENAME' of dllimport'd class
src/CppUnitException.cpp:14: warning: 'CppUnit::CppUnitException::CPPUNIT_UNKNOWNFILENAME' defined locally after being referenced with dllimport linkage
src/CppUnitException.cpp:15: error: definition of static data member 'CppUnit::CppUnitException::CPPUNIT_UNKNOWNLINENUMBER' of dllimport'd class
src/CppUnitException.cpp:15: warning: 'CppUnit::CppUnitException::CPPUNIT_UNKNOWNLINENUMBER' defined locally after being referenced with dllimport linkage
make[1]: *** [c:/everything/andrew/tools/poco-1.1.2/CppUnit/obj/MINGW32_NT-5.0/i686/debug_shared/CppUnitException.o] Error 1
Any chance of better support for minGW? Whilst cygwin is very useful IMO minGW is better in some ways since it results in native DOS/Windoze executables (Cygwin requires the cygwin dll).
-Andrew Marlow





