At first: Thank you for offering time !!
If you start your program from within codeblocks, codeblocks adds all library paths to the "PATH" environment variable, so your executable can find them.
Shouldn't this work with both programs and not only for the test-program?
To compile wxWidgets from source as a static library:
I suck at the second step: "Make sure your mingw compiler is in the PATH variable". Where i can find the PATH variable and how the compiler should be "in" it (conderning this last point i have an idea which will maybe be anwered if i see the PATH variable).
But why do you need static executables? Copy the dll in the same folder as your exe and ship them together...
I tried this. There were 4 wxWidgets-dll-requestes, then the program ended. So i collected the dlls and started the program again. Now there appered around 7-8 further requests for various openGL and system-dlls. At this point i realized, that my program probably needs lots more of dlls - next to lots of configuration-files, ogenGL-shaders, texture-images etc. So, it's already a bit messy and dlls won't make it better :/
...but it's also maybe just a preference - and that i would like to understand it.
you probably have to set one default compiler with the default button... And make sure codeblocks can write the configuration fle: Are other settings saved?
Yes i have set a default compiler. It is in the C::B-folder on volume F:/.
Concerning the C::B-settings i'm also a bit confused. I use a portable version and i had several problems with different 'appearences' of C::B, depending on how i start ist. Only using CbLauncher.exe works. In other cases no compiler is found or i have problems with the UI-size on my UHD-display.
I looked a whilw for different config-files but i did not find.
FYI: Building a static monolithic wxWidgets library is not normal so it is more likely to have build issues.
And, monolithic builds often has issues because of too long of a command line length or out of memory on linking errors.
I'll think about this, but in the end my program is not sooo huge. The last monolithic exe compiled with devC++ needs (containing symbols) ~11.000k; the other one (without symbols) ~1.900k. The program needs 14 source-files (7x .c and 7x .h).
I would be happy to know more about this: "Make sure your mingw compiler is in the PATH variable"...
Best,
Frank