Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Modified & Improved wxWidgets Project Wizard
saddam le pion:
--- Quote from: ascxaxsvcbsxbbqvcxqsbcvxs on February 05, 2007, 04:41:23 pm ---
--- Quote from: mandrav on February 05, 2007, 03:53:11 pm ---
--- Quote from: ascxaxsvcbsxbbqvcxqsbcvxs on February 05, 2007, 03:04:06 pm ---One more question: after compilation & execution OK, i tried to add one character in the title of the window, an acute letter. I got the message "Illegal byte sequence".
--- End quote ---
GCC needs to be told the character set used in your code. The compiler option is named "-finput-charset" and takes the encoding as argument. The default value is "-finput-charset=utf-8" (if I 'm not mistaken).
--- End quote ---
With this option, must i compile wxWidgets, just my application, or both?
Is this option available in CB, like Settings|compiler? i didn't find it.
--- End quote ---
Good question! as it seems to be here lots of non-english developers, who develop non-english applications. This implies almost automatically source codes with "special" letters, so source codes with utf8.
So we want our CB to automatically accept utf8 (or having to parameter it just one time for all), not having to parameter the compiler manually for each source file of each application...
thomas:
GCC uses UTF-8 unless told otherwise...
ascxaxsvcbsxbbqvcxqsbcvxs:
--- Quote from: thomas on February 07, 2007, 11:40:21 am ---GCC uses UTF-8 unless told otherwise...
--- End quote ---
1) I installed CB version 3565 on XP
2) I installed wxWidgets 2.8.0 and compiled it with gcc with unicode => OK
3) use of the wizard to generate a basic application with unicode => compile and execute OK with gcc
4) Then without modifying any CB option anywhere, i just add the special letter é to the title of the windows:
original line, generated by the wizard
azeFrame* frame = new azeFrame(0L, _("wxWidgets Application Template"));
modified line, for beginning to test the unicode support
azeFrame* frame = new azeFrame(0L, _("wxWidgets Application Templateé"));
no other modification except this character => i got the compile message "Illegal byte sequence".
5) If i suppress this character => compile OK
6) I've now tried several times with last build 3577 => same problem, but the error message is now
"converting to execution character set: Invalid argument"
ascxaxsvcbsxbbqvcxqsbcvxs:
--- Quote from: thomas on February 07, 2007, 11:40:21 am ---GCC uses UTF-8 unless told otherwise...
--- End quote ---
with Dev-C++ I have no problem with the special letters: so i don't think it is a compiler problem.
yesidh:
I'm using mingw compiled wxWidgets using the ./configure not using the makefile.gcc that comes with wxWidgets because someone it didn't work dor me. The make file generated me the files and I copied to the $wxWIN/lib/gcc_lib
The point is that the libraries generated are like this: libwx_base-2.8.a
Seeing the wizard.script in the codeblock, I can see that the wizard looks for something like libwxbase28.a according to my setting. So I modified the 3586 SVN and it is now working. Am I the only one with this issue?.
Thanks.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version