Page 1 of 1

ANSI build possible??

Posted: Fri Dec 12, 2008 4:40 am
by coder99
Hi Eran,

Up to now I have been building Unicode versions of my program.
Just now I was trying to compile a plain ANSI version, but I am having problems.

I haven't chased things very far yet because I noticed that the compiler inserts a -D_UNICODE into the command line.

So now I wonder:
Where does it come from?
Can I remove it - and how?
Can I build ANSI versions?

TIA

Re: ANSI build possible??

Posted: Fri Dec 12, 2008 5:10 am
by sdolim
If it's not in your project's compiler flags, then it could be coming from wx-config (if your program is wxWidgets based). In that case it is determined by the WXCFG environment variable.

Re: ANSI build possible??

Posted: Fri Dec 12, 2008 7:25 am
by coder99
Thank you, Eran.

It seems I got tripped up somewhere; I am positive I did change my compiler options at the same time I changed my library names, but somehow the compiler option change got lost and I didn't go back to verify the change.

This time the changes stuck and it all compiled as expected.

Re: ANSI build possible??

Posted: Fri Dec 12, 2008 9:59 am
by eranif
coder99 wrote:Thank you, Eran.
It was actually Scott who helped you with this one ;)

Eran

Re: ANSI build possible??

Posted: Fri Dec 12, 2008 9:59 pm
by coder99
Guess I'll ave to read things a bit more carefully :-)
in that case: Thank you Scott. ;-)