WXCFG and Debug vs Release builds

General questions regarding the usage of CodeLite
User avatar
ColleenKobe
CodeLite Expert
Posts: 129
Joined: Wed Mar 30, 2016 4:31 pm
Genuine User: Yes
IDE Question: C++
Contact:

WXCFG and Debug vs Release builds

Post 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

DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: WXCFG and Debug vs Release builds

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
ColleenKobe
CodeLite Expert
Posts: 129
Joined: Wed Mar 30, 2016 4:31 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: WXCFG and Debug vs Release builds

Post by ColleenKobe »

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

Colleen

Post Reply