Overview
Features
Download
Documentation
Community
Add-Ons & Services

Can't compile poco with Cygwin

Please post support and help requests here.

Can't compile poco with Cygwin

Postby NedbeN » 14 Jan 2013, 17:12

Hello,

I'am trying to install Poco c++ with Cygwin on Windows XP.

Versions : Poco 1.4.5
make 3.82.90
gcc 4.5.3


I use configure with this option : ./configure --no-tests --no-samples
I compile poco with this command : make -s
During compilation, I have this error :

** Compiling src/NamedEvent.cpp (debug, shared)
In file included from src/NamedEvent.cpp:47:0:
src/NamedEvent_UNIX.cpp: In constructor ‘Poco::NamedEventImpl::NamedEventImpl(const std::string&)’:
src/NamedEvent_UNIX.cpp:93:15: erreur: aggregate ‘Poco::NamedEventImpl::NamedEventImpl(const std::string&)::semun arg’ has incomplete type and cannot be defined
/home/L4/poco-1.4.5/build/rules/compile:53: recipe for target `/home/L4/poco-1.4.5/Foundation/obj/CYGWIN/i686/debug_shared/NamedEvent.o' failed
make[1]: *** [/home/L4/poco-1.4.5/Foundation/obj/CYGWIN/i686/debug_shared/NamedEvent.o] Error 1
Makefile:62: recipe for target `Foundation-libexec' failed
make: *** [Foundation-libexec] Error 2
:shock:

I can't find help on the net.

Somebody can help me ? :?:
NedbeN
 
Posts: 2
Joined: 14 Jan 2013, 17:03

Re: Can't compile poco with Cygwin

Postby alex » 14 Jan 2013, 17:44

The problem is cygwin detection is too far down in Platform.h and gets swallowed by generic unix ifdef. It was fixed for 1.5.1 :
Code: Select all
#elif defined(__QNX__)
   #define POCO_OS_FAMILY_UNIX 1
   #define POCO_OS POCO_OS_QNX
+#elif defined(__CYGWIN__)
+  #define POCO_OS_FAMILY_UNIX 1
+  #define POCO_OS POCO_OS_CYGWIN
+#elif defined(POCO_VXWORKS)
+  #define POCO_OS_FAMILY_UNIX 1
+  #define POCO_OS POCO_OS_VXWORKS
 #elif defined(unix) || defined(__unix) || defined(__unix__)
   #define POCO_OS_FAMILY_UNIX 1
   #define POCO_OS POCO_OS_UNKNOWN_UNIX
...    ...   
#elif defined(_WIN32) || defined(_WIN64)
   #define POCO_OS_FAMILY_WINDOWS 1
   #define POCO_OS POCO_OS_WINDOWS_NT
-#elif defined(__CYGWIN__)   
-  #define POCO_OS_FAMILY_UNIX 1   
-  #define POCO_OS POCO_OS_CYGWIN
 #elif defined(__VMS)
   #define POCO_OS_FAMILY_VMS 1
   #define POCO_OS POCO_OS_VMS
-#elif defined(POCO_VXWORKS)    
-  #define POCO_OS_FAMILY_UNIX 1        
-  #define POCO_OS POCO_OS_VXWORKS
 #endif
alex
 
Posts: 1114
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: Can't compile poco with Cygwin

Postby NedbeN » 15 Jan 2013, 09:50

Thank you for your help

I can compile and install now :D .
NedbeN
 
Posts: 2
Joined: 14 Jan 2013, 17:03


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron