Emulator Issues #166
closedfailed to build njoy.h due to characterset error
0%
Description
i'm using Chinese XP, vs2005 assume the source code is in cp936(GBK)
encoding by default.
i don't think it good to write non-ascii characters in code. vs2005 will
over react with it
1>------ Build started: Project: Plugin_nJoy_SDL, Configuration: Debug
Win32 ------
1>Compiling...
1>nJoy.cpp
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\njoy.h :
error C2220: warning treated as error - no 'object' file generated
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\njoy.h :
warning C4819: The file contains a character that cannot be represented in
the current code page (936). Save the file in Unicode format to prevent
data loss
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\gui\aboutbox.h
: warning C4819: The file contains a character that cannot be represented
in the current code page (936). Save the file in Unicode format to prevent
data loss
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\gui\configbox.h
: warning C4819: The file contains a character that cannot be represented
in the current code page (936). Save the file in Unicode format to prevent
data loss
1>AboutBox.cpp
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\gui\aboutbox.cpp
: error C2220: warning treated as error - no 'object' file generated
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\gui\aboutbox.cpp
: warning C4819: The file contains a character that cannot be represented
in the current code page (936). Save the file in Unicode format to prevent
data loss
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\gui\aboutbox.h
: warning C4819: The file contains a character that cannot be represented
in the current code page (936). Save the file in Unicode format to prevent
data loss
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\njoy.h :
warning C4819: The file contains a character that cannot be represented in
the current code page (936). Save the file in Unicode format to prevent
data loss
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\gui\aboutbox.h
: warning C4819: The file contains a character that cannot be represented
in the current code page (936). Save the file in Unicode format to prevent
data loss
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\gui\configbox.h
: warning C4819: The file contains a character that cannot be represented
in the current code page (936). Save the file in Unicode format to prevent
data loss
1>ConfigBox.cpp
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\gui\configbox.cpp
: error C2220: warning treated as error - no 'object' file generated
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\gui\configbox.cpp
: warning C4819: The file contains a character that cannot be represented
in the current code page (936). Save the file in Unicode format to prevent
data loss
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\gui\configbox.h
: warning C4819: The file contains a character that cannot be represented
in the current code page (936). Save the file in Unicode format to prevent
data loss
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\njoy.h :
warning C4819: The file contains a character that cannot be represented in
the current code page (936). Save the file in Unicode format to prevent
data loss
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\gui\aboutbox.h
: warning C4819: The file contains a character that cannot be represented
in the current code page (936). Save the file in Unicode format to prevent
data loss
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\gui\configbox.h
: warning C4819: The file contains a character that cannot be represented
in the current code page (936). Save the file in Unicode format to prevent
data loss
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\gui\configbox.cpp(653)
: warning C4819: The file contains a character that cannot be represented
in the current code page (936). Save the file in Unicode format to prevent
data loss
1>config.cpp
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\config.cpp
: error C2220: warning treated as error - no 'object' file generated
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\config.cpp
: warning C4819: The file contains a character that cannot be represented
in the current code page (936). Save the file in Unicode format to prevent
data loss
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\njoy.h :
warning C4819: The file contains a character that cannot be represented in
the current code page (936). Save the file in Unicode format to prevent
data loss
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\gui\aboutbox.h
: warning C4819: The file contains a character that cannot be represented
in the current code page (936). Save the file in Unicode format to prevent
data loss
1>c:\var\dev\src\dolphin-emu\source\plugins\plugin_njoy_sdl\src\gui\configbox.h
: warning C4819: The file contains a character that cannot be represented
in the current code page (936). Save the file in Unicode format to prevent
data loss
1>Generating Code...
1>Build log was saved at
"file://c:\var\dev\src\dolphin-emu\Source\Plugins\Plugin_nJoy_SDL\Win32\Debug\BuildLog.htm"
1>Plugin_nJoy_SDL - 4 error(s), 18 warning(s)
========== Build: 0 succeeded, 1 failed, 16 up-to-date, 0 skipped ==========
Updated by daco65 over 16 years ago
- Issue type changed from Task to Other
it seems your visual studio treats warnings as errors. try to disable that.
also, try to rebuild instead of build
Updated by jpeterson57 about 16 years ago
- Status changed from New to Won't fix
Closed the issue. Will reopen if the problem persists.