Page 1 of 1

WXCFG and Debug vs Release builds

Posted: Fri Aug 04, 2023 3:14 pm
by ColleenKobe

My CodeLite version 17.4.0 environment variables are currently set as follows:

Code: Select all

CodeLiteDir=C:/CodeLite-17.4.0
WXCFG=gcc_dll/mswud
WXWIN=C:/wxWidgets-3.2.2.1

I'm a little concerned about the WXCFG variable. I'm mostly building Debug versions of my code. I've just learned that "mswud" is intended for the code to be debug code, so that's fine.

But are we supposed to be changing the WXCFG to the release version when we actually do release builds? Like--

WXCFG=gcc_dll/mswu

for release code?

Colleen


Re: WXCFG and Debug vs Release builds

Posted: Fri Aug 04, 2023 5:29 pm
by DavidGH

I've just learned that "mswud" is intended for the code to be debug code

That's right. Adding that 'd' to the name for 'debug' builds has been the wx standard for at least the 20 years that I've been using it.

But are we supposed to be changing the WXCFG to the release version when we actually do release builds?

Well, if you're setting the dll name using WXCFG, then obviously...

What you are presumably working up to asking is: how should you provide different values of $WXCFG depending on the type of build. The answer is to change the value depending on the project type.
You presumably have a Workspace. It should, by default, have both a Debug and a Release Project. Change each of those project's Environment setting appropriately: see the screenshots.

Debug.png

Re: WXCFG and Debug vs Release builds

Posted: Sat Aug 05, 2023 3:40 pm
by ColleenKobe

Great! Thank you, DavidGH! I'll do that.

Colleen