John wrote:
> <tdragon@...> writes:
>
>> At a guess, I'd say he made a Unicode build of wxWidgets but failed to
>> #define wxUSE_UNICODE in compiling his own sources.
>>
>> -John E.
>>
>
> hi,
>
> this should not be the problem since i have the line
> #define wxUSE_UNICODE 1
> in my sources.
>
Nevertheless, I think it *is* the problem, as those undefined references
are to functions with char arguments rather than wchar_t arguments. It's
better to use "-DwxUSE_UNICODE" on the command line rather than using a
#define in a physical source file; in the second case you might have
(and probably have) misplaced the #define after some wxWidgets headers.
Anyway, in troubleshooting your use of wxWidgets we're straying a bit
beyond the mandate of mingw-users; you should probably follow up any
further difficulties at the wxForum or elsewhere.
-John E.
|