Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Modified & Improved wxWidgets Project Wizard
TDragon:
--- Quote from: Pecan on February 13, 2007, 02:44:50 pm ---Just please make sure that __wxdebug__ is never set unless the user explicitly clicks on it.
--- End quote ---
Just as an FYI, when using wxWidgets with MSVC, it's almost always correct to define __WXDEBUG__ for a project's debug build and not define it for the release build. This is because of MSVC's debug and non-debug runtime library -- a project that links with the debug runtime requires wxWidgets to have been linked with the debug runtime also, and the same for the non-debug runtime.
Pecan:
--- Quote from: TDragon on February 13, 2007, 03:17:14 pm ---
--- Quote from: Pecan on February 13, 2007, 02:44:50 pm ---Just please make sure that __wxdebug__ is never set unless the user explicitly clicks on it.
--- End quote ---
Just as an FYI, when using wxWidgets with MSVC, it's almost always correct to define __WXDEBUG__ for a project's debug build and not define it for the release build. This is because of MSVC's debug and non-debug runtime library -- a project that links with the debug runtime requires wxWidgets to have been linked with the debug runtime also, and the same for the non-debug runtime.
--- End quote ---
Oh dear. What a mess.... Poor Biplab! What did you get yourself into?
Biplab:
Yes! It's indeed a mess. Not all the compilers behave similarly. So I kept the Common Minimum Options and left other options at the discretion of users. :)
Problems will arise with MSVC 7.1 & 8 and as well as BCC. BCC will not accept to compile wx app in Console mode unless some manual hacking is done.
So still in a mess on what to do. I can add another option saying "Don't Add __WXDEBUG__". But that'll mean a number of changes. ;)
TDragon:
My suggestion: Use an option called "Debug target uses debug wxWidgets libraries", enabled by default for MSVC and disabled by default for GCC. (Using the debug libraries implies including __WXDEBUG__.)
Biplab:
By default Debug Target uses Debug wx lib with __WXDEBUG__ for all. But if it has to disable it then which library should be set default to for GCC? :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version