DLL build with MSVC works but GCC wont
-
- Earned a small fee
- Posts: 11
- Joined: Fri May 17, 2019 11:43 am
Re: DLL build with MSVC works but GCC wont
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
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.
- 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.
Use the source, Luke!