[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make fails for octave gui using mingw
From: |
Michael Goffioul |
Subject: |
Re: make fails for octave gui using mingw |
Date: |
Sun, 20 Nov 2011 14:26:07 +0000 |
On Sun, Nov 20, 2011 at 1:56 PM, Kai Habel <address@hidden> wrote:
>>> src/terminal/win32/QConsole.cpp:220:50: error: invalid conversion from
>>> 'wchar_t*
>>> ' to 'const ushort*'
>>
>> What's the sizeof (wchar_t) on your system?
>>
>> Michael.
>
> address@hidden ~/hg-octave/octave/gui
> $ wchar_test.exe
> size wchar: 2
>
> address@hidden ~/hg-octave/octave/gui
> $ cat wchar_test.c
>
> #include <stdio.h>
>
> int main(void) {
> printf("size wchar: %d\n",sizeof(wchar_t));
> return 0;
> }
I'm not sure why g++ refuses to make the cast then. Using
QString::fromWCharArray should solve the issue. Could you give it a
try?
Michael.