ANSI build possible??

General questions regarding the usage of CodeLite
coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

ANSI build possible??

Post 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

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

sdolim
CodeLite Veteran
Posts: 69
Joined: Fri Oct 24, 2008 10:29 pm
Contact:

Re: ANSI build possible??

Post 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.
coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Re: ANSI build possible??

Post 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.

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: ANSI build possible??

Post by eranif »

coder99 wrote:Thank you, Eran.
It was actually Scott who helped you with this one ;)

Eran
Make sure you have read the HOW TO POST thread
coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Re: ANSI build possible??

Post by coder99 »

Guess I'll ave to read things a bit more carefully :-)
in that case: Thank you Scott. ;-)

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

Post Reply