Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » Hack for MSC8 and "newline in constant" errors
Hack for MSC8 and "newline in constant" errors [message #10439] |
Mon, 09 July 2007 13:43 |
kfeng
Messages: 18 Registered: July 2007 Location: Tokyo, Japan
|
Promising Member |
|
|
Hi,
I'm new to upp, and I almost gave it up after two days, because it wouldn't compile under MSC8 under WinXP...
...until I found a hacky work-around... ...In Core/Language/t.h, search for TFILE and just comment out the line like this:
// #include TFILE
or wrap it with an #ifndef:
#ifndef PLATFORM_WIN32
#include TFILE
#endif
Of course, this is ugly - but given the choice of not being able to compile at all and losing Localization support, I volunteer to take the lesser evil.
I hope some expert developers in upp can come up with a more graceful solution than this, but looking through the threads, I'm not the first one to notice this problem...
- Ken
------------------------------------------------------------ ---
F:\upp\uppsrc\CtrlLib/CtrlLib.t : warning C4819: The file contains a character that cannot be represented
in the current code page (932). Save the file in Unicode format to prevent data loss
F:\upp\uppsrc\CtrlLib/CtrlLib.t(29) : error C2001: newline in constant
F:\upp\uppsrc\CtrlLib/CtrlLib.t(41) : error C2001: newline in constant
F:\upp\uppsrc\CtrlLib/CtrlLib.t(43) : error C2001: newline in constant
F:\upp\uppsrc\CtrlLib/CtrlLib.t(53) : error C2001: newline in constant
F:\upp\uppsrc\CtrlLib/CtrlLib.t(65) : error C2001: newline in constant
F:\upp\uppsrc\CtrlLib/CtrlLib.t(76) : error C2001: newline in constant
F:\upp\uppsrc\CtrlLib/CtrlLib.t(77) : error C2001: newline in constant
F:\upp\uppsrc\CtrlLib/CtrlLib.t(89) : error C2001: newline in constant
F:\upp\uppsrc\CtrlLib/CtrlLib.t(91) : error C2001: newline in constant
|
|
|
Goto Forum:
Current Time: Thu Apr 18 05:17:19 CEST 2024
Total time taken to generate the page: 0.01571 seconds
|