Overview
Features
Download
Documentation
Community
Add-Ons & Services

CYGWIN build issue (std::wstring)

Please post support and help requests here.

CYGWIN build issue (std::wstring)

Postby jkeogh1413 » 11 Sep 2012, 06:45

Searching has failed me. Perhaps this is an isolated error.

CYGWIN version: 1.7.16
Downloaded Basic Edition for Linux/OSX/etc...

./configure
Configured for CYGWIN

$ make
make -C /home/Keogh/ex_libs/poco-1.4.4/Foundation
make[1]: Entering directory `/home/Keogh/ex_libs/poco-1.4.4/Foundation'
** Compiling src/DirectoryWatcher.cpp (debug, shared)
g++ -Iinclude -I/home/Keogh/ex_libs/poco-1.4.4/CppUnit/include -I/home/Keogh/ex_libs/poco-1.4.4/Foundation/include -I/home/Keogh/ex_libs/poco-1.4.4/XML/include -I/home/Keogh/ex_libs/poco-1.4.4/Util/include -I/home/Keogh/ex_libs/poco-1.4.4/Net/include -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SHAREDMEMORY -DPOCO_BUILD_HOST=Keogh-PC -D_XOPEN_SOURCE=500 -g -D_DEBUG -c src/DirectoryWatcher.cpp -o /home/Keogh/ex_libs/poco-1.4.4/Foundation/obj/CYGWIN/i686/debug_shared/DirectoryWatcher.o
In file included from src/DirectoryWatcher.cpp:45:
include/Poco/UnicodeConverter.h:58: error: `std::wstring' has not been declared
include/Poco/UnicodeConverter.h:58: error: ISO C++ forbids declaration of `utf16String' with no type
include/Poco/UnicodeConverter.h:61: error: `std::wstring' has not been declared
include/Poco/UnicodeConverter.h:61: error: ISO C++ forbids declaration of `utf16String' with no type
include/Poco/UnicodeConverter.h:64: error: `std::wstring' has not been declared
include/Poco/UnicodeConverter.h:64: error: ISO C++ forbids declaration of `utf16String' with no type
include/Poco/UnicodeConverter.h:67: error: expected unqualified-id before '&' token
include/Poco/UnicodeConverter.h:67: error: expected `,' or `...' before '&' token
include/Poco/UnicodeConverter.h:67: error: ISO C++ forbids declaration of `parameter' with no type

/home/Keogh/ex_libs/poco-1.4.4/build/rules/compile:53: recipe for target `/home/Keogh/ex_libs/poco-1.4.4/Foundation/obj/CYGWIN/i686/debug_shared/DirectoryWatcher.o' failed
make[1]: *** [/home/Keogh/ex_libs/poco-1.4.4/Foundation/obj/CYGWIN/i686/debug_shared/DirectoryWatcher.o] Error 1
make[1]: Leaving directory `/home/Keogh/ex_libs/poco-1.4.4/Foundation'
Makefile:62: recipe for target `Foundation-libexec' failed
make: *** [Foundation-libexec] Error 2


It seems that in this one case std::wstring is still an issue, even with the -DPOCO_NO_WSTRING option.


Any suggestions?

Thanks.
jkeogh1413
 
Posts: 3
Joined: 11 Sep 2012, 06:35

Re: CYGWIN build issue (std::wstring)

Postby alex » 11 Sep 2012, 16:02

jkeogh1413 wrote:Any suggestions?

Make sure POCO_WIN32_UTF8 is not defined (look in Config.h).
alex
 
Posts: 1145
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: CYGWIN build issue (std::wstring)

Postby jkeogh1413 » 11 Sep 2012, 21:50

A+

Is this a typical step when installing on CYGWIN, or was configure supposed to handle it?

Fix:
Navigate to /poco-1.4.4/Foundation/include/Poco
Open 'Config.h'
Comment out the following line:
//#define POCO_WIN32_UTF8
make
make install

Build was smooth.

Thank you.
jkeogh1413
 
Posts: 3
Joined: 11 Sep 2012, 06:35

Re: CYGWIN build issue (std::wstring)

Postby alex » 11 Sep 2012, 22:25

jkeogh1413 wrote:Is this a typical step when installing on CYGWIN, or was configure supposed to handle it?

You have actually discovered a build system inconsistency. Poco comes with POCO_WIN32_UTF8 enabled by default because that's what most windows users need but it should not leak into non-windows build environments or be defined alongside with POCO_NO_WSTRING. It will be fixed in 1.4.4p1 and 1.5.0
alex
 
Posts: 1145
Joined: 11 Jul 2006, 16:27
Location: United_States


Return to Support

Who is online

Users browsing this forum: No registered users and 4 guests