Game Development Community

error MIDL2108: badly formed character constant

by michael · in Torque 3D Beginner · 10/14/2012 (11:41 pm) · 4 replies

Hi
while trying to compile my project in vc2010express I get:
error MIDL2108: badly formed character constant
what could that be?
Thanks

#1
10/15/2012 (9:30 am)
The end-of-line character is not allowed in character constants.

Find the line in question and make sure that your line endings are correct.
#2
10/16/2012 (2:08 am)
Thanks, compiles now. But I need to change all occurences in the project. Project name, files and within files. Would you have any idea on how to rename all those/the project on Windows? I've tried windows grep, but this doesn't work as expected.
#3
10/16/2012 (9:42 am)
I know that we normalized line endings in the repo so that the zip version would compile under Windows correctly and GitHub for Windows will automatically convert them from Unix line endings (\n) to Windows (\r\n). What did you use to obtain it? The client that you used may be keeping the Unix line endings.

If you have Python installed, you can use the lfcr.py to convert the LF to CRLF. Visual Studio usually warns you about line endings, but that might only be if there are mixed line endings in a project.
#4
10/17/2012 (1:09 am)
It was not the line ending but *'s in the project name. That's why I need to rename all. Probably I'm fastest in doing a new project and only copy the level *.mis over?