Game Development Community

UNICODE define problem

by Jeff Paden · in Torque Game Engine · 12/04/2005 (7:30 pm) · 4 replies

Hello everyone and please excuse my newbee question here, but I am really stuck and need a little help.
I just purchased Torque and downloaded the only version that the site would allow which is version 1.4.
I then installed the following:

MinGW 3.1.0
MSys 1.0.9
Codeblocks IDE

I also downloaded the MakeFiles for codeblocks IDE and yes, I edited them to work correclty with Torque 1.4 since the directory structure is different and more files that needed to be included.

Now I am stuck on what you may think to be a very easy thing, but I can't find info on it anywhere! When I try to build I get the following error:

"ERROR: You must have UNICODE defined in your preprocessor settings (ie, /DUNICODE) if you have TORQUE_UNICODE enabled in torqueConfig.h!"

At first glance this looked simple enough, I just need to define UNICODE in my preprocessor settings. Ok, ummm, where and how the heck do I do that?

I can not find any "preprocessor" settings in Codeblock but I did find the section:
Project, build options, other options. I have tried to put UNICODE and /DUNICODE in this area but neither one worked.

I feel real stupid at this point and would appreciate any kind help that anyone may be able to offer.

Thank you

Jeff

About the author

Recent Threads


#1
12/04/2005 (7:34 pm)
The simple fix if you dont need unicode support is to just remove the TORQUE_UNICODE define from torqueConfig.h
#2
12/04/2005 (10:24 pm)
I should have mentioned that I knew I could just remove the unicode support, but I just hate it when I can not figure out something that seems like it should be very simple to understand.
I really would like to know where I can set the precompiler settings and how to do it.

Thank you
#3
12/04/2005 (10:32 pm)
...
#4
09/08/2009 (4:01 pm)
Did anybody figure this out? I'm switching my Windows build to mingw32 instead of vc++ so I don't have to add finding differences between gcc and vc++ friendly code to my development cycle. How do I go about setting preprocesser flags for GCC?

[edit]

nvm, I think I just need to use a -D UNICODE instead of /DUNICODE and figure out where in the .mk files to add it.