Biplab,
Thanks for your quick reply.
For a newbie like me Squirrel and scripting Codeblocks is new as well
Therefore I have no feel for what the impact of my request would be. But from your reply I understand that it's not straightforward.
Forgot to mention that I did manage to set up a project where Release Target and Build Target use different library types.
The project uses a shared library for the Debug Target and a static library for the Release Target.
The project was created the wxWidgets wizard with the "Use wxWidgets DLL" check box checked.
I changed the following "Project build options" manually:
a) In the Compiler tab moved #define WXUSINGDLL from "Project" (settings used for both Debug and Release Target) to "Debug"
b) Release Target - Linker tab
added Link libraries: libwxmsw28u.a, comctl32, gdi32, ole32, oleaut32 and uuid
c) Release Target - Directories tab
Compiler tab: change <path>\wxWidgets-2.8.0\lib\gcc_dll\mswud to
<path>\wxWidgets-2.8.0\lib\gcc_lib\mswu
Linker tab: change <path>\wxWidgets-2.8.0\lib\gcc_dll to
<path>\wxWidgets-2.8.0\lib\gcc_lib
Resource compiler tab: change <path>\wxWidgets-2.8.0\lib\gcc_dll\mswud to
<path>\wxWidgets-2.8.0\lib\gcc_lib\mswu
With these changes the Debug Target and the Release Target build succesfully.
I'll also check your suggestion to see which "trick" is easiest to use.
A short remark for other newbies who might think "why would you like different library types in the first place?"
For Release Targets I prefer to have an executable that doesn't depend on DLL files, hence the static library.
For the Debug Target I could use a static wxWidgets debug library. But the static wxWidgets library has a big disadvantage (when compiled with MinGW GCC) if you are short on HDD space: it is huge, about 360 MByte. The shared wxWidgets library "only consumes" about 75 MByte.
Regards, Marlo