Game Development Community

how to remove warning C4819 in vs2010?

by Huang Gendong · in Torque 3D Beginner · 10/18/2014 (7:08 am) · 3 replies

hi, i'm new to torque 3d, i'm from china
when i start building my new project with project manager 2.1, i still keep receiving numerous "....torque3d-developmentenginelibconvexdecompNvHashMap.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", so it's to hard to scroll the output window to find anything else meaningful, so how can i remove teribble so many c4819 warnings?
please help, or give me a guide, thanks

About the author

Recent Threads


#1
10/18/2014 (1:48 pm)
http://msdn.microsoft.com/en-us/library/ms173715.aspx

In VS2010 you'll need to go File -> Save <File> As... then in the dialog, click the dropdown next to the Save button and select 'Save with Encoding'. You'll probably want to save the file with Unicode encoding.
#2
10/18/2014 (9:00 pm)
thank you, chris, for your reply
but the files u recommend me upgrading to unicode are all the T3D core headers, such as in
../Torque3D-development/Engine/lib/collada/include/1.4/dom/domAsset.h
........................................................../domInt_array.h
..................
......................./Engine/source/ts/tsMesh.h
.....
of course vs2010 warned me with "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" with the above msg appended with each header file names,
btw code page (936) is the chinese simplified code page number
what i really want to solve is to find the source of the unrepresentable characters in the corresponding header file.
is that mean i have a lot of work to do? and i've found a lot of such similar issues in GNU source code downloaded from various web sites, especially from english-speaking web sites or coders.
and other type of issue:
----some C source codes often generate signed/unsigned mismatch warnings
----some C source codes often generate variables declared but not even used
----some C source codes generate operator precedence issues, for exaple: +(addition) and << (bitshift), and i've made lots of efforts to enclose the expressions

----some Cpp source codes generate template class or function warnings.. etc, such as the following
............../Torque3D-development/Engine/source/sfx/sfxWorld.h(263) : while compiling class template member function 'void SFXWorld<NUM_DIMENSIONS,Object>::update(void)'
............../Torque3D-development/Engine/source/T3D/sfx/sfx3DWorld.h(90) : see reference to class template instantiation 'SFXWorld<NUM_DIMENSIONS,Object>' being compiled
....................
so how to do with that? simply leave them as is? because there's no harm to the machine code vs2010 generated?
if so many warnings keep scrolling from my vs2010 output windows, how can i concentrate to some T3D classes to understand some core concepts? to understand some techniques the T3D encapsulated?
how long the road i need to take to get close to T3D and DX9's core?
thanks?
any guide would be appriciated, thx
#3
10/18/2014 (10:34 pm)
You can always alter your settings to explicitly ignore this warning. I can't remember what the flag is, but you can add any exclusions in the command-line (or maybe it's called "custom") section of the build settings.