Page 2 of 2

Re: DLL build with MSVC works but GCC wont

Posted: Mon May 20, 2019 9:51 am
by keithsw11111
So sample app works but merging same concept into my main code base shows errors ... something still not quite right.

Re: DLL build with MSVC works but GCC wont

Posted: Mon May 20, 2019 3:52 pm
by doublemax
These two are the key conditions:

- DLL must have its own set of wxWidgets libraries (or not use wxWidgets at all). This means that you must not have the case where both the host app and the DLL link dynamically to wxWidgets. All other combinations should work. I assume that this happens when you build with GCC. How exactly do you build with MSVC?

- DLL must initialize wxWidgets in its own thread and communicate with the host app through events.