Hi all,
I can see a CYGWIN make config file under [SOME_DIR]poco-1.1.2.olduildconfig.
When I try to do the following under Win32 (XP):
set POCO_CONFIG=CYGWIN
make
After some compilation I get the following compiler error:
##############################
** Compiling src/CppUnitException.cpp (debug, shared)
g++ -Iinclude -I/cygdrive/e/distributions/poco-1.1.2/Foundation/include -I/cygdrive/e/distributions/poco-1.1.2/XML/include -I/cygdrive/e/distributions/poco-1.1.2/Util/include -I/cygdrive/e/distributions/poco-1.1.2/Net/include -I/cygdrive/e/distributions/poco-1.1.2/CppUnit/include -DPOCO_BUILD_HOST=GOBY -D_XOPEN_SOURCE=500 -D_REENTRANT -D_THREAD_SAFE -g -D_DEBUG -DPOCO_DLL -c src/CppUnitException.cpp -o /cygdrive/e/distributions/poco-1.1.2/CppUnit/obj/CYGWIN_NT-5.2/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]: *** [/cygdrive/e/distributions/poco-1.1.2/CppUnit/obj/CYGWIN_NT-5.2/i686/debug_shared/CppUnitExceptio
n.o] Error 1
make[1]: Leaving directory `/cygdrive/e/distributions/poco-1.1.2/CppUnit'
make: *** [all] Error 2
##############################
The problem seems the following error:
src/CppUnitException.cpp:14: error: definition of static data member 'CppUnit::CppUnitException::CPPUNIT_UNKNOWNFILENAME' of dllimport'd class.
I tried to find an explanation for this error but couldn't find one. I am using gcc version 3.4.4 (cygming special).
Murat





