Overview
Features
Download
Documentation
Community
Add-Ons & Services

not build

Please post support and help requests here.

not build

Postby cform1 » 31 Jul 2007, 14:57

failed building
src/Path.cpp:1009: error: 'WC_NO_BEST_FIT_CHARS' was not declared in this scope
make[1]: *** [/e/poco-1.3.0-data/Foundation/obj/MinGW/ia32/debug_shared/Path.o] Error 1
make[1]: Leaving directory `/e/poco-1.3.0-data/Foundation'
make: *** [Foundation-libexec] Error 2

my enviorment:
os windows2000 mingw 3.4.4
and config.h
#define #define POCO_WIN32_UTF8
I need utf8
cform1
 
Posts: 4
Joined: 04 Jul 2007, 14:17

Re: not build

Postby guenter » 01 Aug 2007, 11:20

The problem here is that no one of us developers currently uses POCO on Cygwin or MinGW, and it's thus not really supported. Maybe you can figure out that stuff yourself and let us know what you did to make it work?
guenter
 
Posts: 1155
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Re: not build

Postby petrux » 21 Sep 2007, 16:02

Hi there,

I've been spending some days over this issue. I think that as the WideCharToMultiByte function is something Microsoft-related, the core problem is in using a gcc compliant compiler (as MinGW: I'm using it too).

>Maybe you can figure out that stuff yourself and let us know what you did to
> make it work?

I'd really like to contribute someway to this __wonderful__ project, but I think I don't have the necessary skills aboud C/C++ development. Anyway, I can point out this: the cygwin support __doesn't__ automatically introduce the MinGW support, as cygwin is a POSIX-environment over a Windows one, while MinGW is a gcc porting for Windows (so calling make -f Makefile with MinGW doesn't produce anything good ;-P ). And it's a pity, as I spent 20mins to build POCO on my Debian and something like 4 days to do the same on Windows-without-VisualStudio (and, actually, I couldn't get it properly built, so I had to use VS).

Any suggestion would be appreciated, and I'll try to give you a feedback on my activity to make POCO MinGW-compliant.

thanks,

petrux

(p.s. sorry for my English!)
petrux
 
Posts: 17
Joined: 07 Sep 2007, 15:30

Re: not build

Postby pamcgill » 03 Mar 2008, 20:30

> failed building
> src/Path.cpp:1009: error: 'WC_NO_BEST_FIT_CHARS' was not declared in this scope
> make[1]: *** [/e/poco-1.3.0-data/Foundation/obj/MinGW/ia32/debug_shared/Path.o] Error 1
> make[1]: Leaving directory `/e/poco-1.3.0-data/Foundation'
> make: *** [Foundation-libexec] Error 2
>
> my enviorment:
> os windows2000 mingw 3.4.4
> and config.h
> #define #define POCO_WIN32_UTF8
> I need utf8
>

I fixed this locally by adding this to UnWindows.h, following the windows.h include.

// Define missing macro...
#ifndef WC_NO_BEST_FIT_CHARS
#define WC_NO_BEST_FIT_CHARS 1024
#endif

The wxWidgets team used the same method to fix this.

Peter
pamcgill
 
Posts: 1
Joined: 03 Mar 2008, 19:56
Location: Canada


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron