hi.
i have a codeblocks wxWidgets project created with wxWidgets 3.0.5 (built as molithic, unicode and shared)
i'm compiling right now another wxwidgets 3.0.5, this one for static linking...
wich settings must be modified in order to use the static linking?
swap exisintg project config Topic is solved
Re: swap exisintg project config
Firstly, you need to make sure you built wxWidgets in the required configurations.
Secondly, if the only change is switching from the shared to the static build and everything else (including monolithic) remains the same, you only need:
1. Change the include and library folders, where there is now "gcc_dll", there needs to be "gcc_lib"
2. Remove WXUSINGDLL from the preprocessor defines.
You will still need GCC's DLL, unless you build both wxWidgets and your application linking to those statically, see more e.g. in my guide.
Secondly, if the only change is switching from the shared to the static build and everything else (including monolithic) remains the same, you only need:
1. Change the include and library folders, where there is now "gcc_dll", there needs to be "gcc_lib"
2. Remove WXUSINGDLL from the preprocessor defines.
You will still need GCC's DLL, unless you build both wxWidgets and your application linking to those statically, see more e.g. in my guide.
Re: swap exisintg project config
Hi,
Unless you want to modify the CodeBlock sources, please drop monolithic build option.
Thank you.
Unless you want to modify the CodeBlock sources, please drop monolithic build option.
Thank you.
Re: swap exisintg project config
I don't see how the two are connected?
Re: swap exisintg project config
PB,
They are not.
However, the OP already have a reason for rebuilding the library - I'm giving him/her another one to make his/her life and life of all of us easier.
Thank you.
They are not.
However, the OP already have a reason for rebuilding the library - I'm giving him/her another one to make his/her life and life of all of us easier.
Thank you.
-
- Experienced Solver
- Posts: 50
- Joined: Tue Apr 13, 2021 1:10 am
- Location: Buenos Aires, Argentina
- Contact:
Re: swap exisintg project config
at the end the best choice was to create a new project configured with the new wxwidgets libs and transfer every source file from the old project into the new one .