DLL build with MSVC works but GCC wont

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
keithsw11111
Earned a small fee
Earned a small fee
Posts: 11
Joined: Fri May 17, 2019 11:43 am

Re: DLL build with MSVC works but GCC wont

Post by keithsw11111 » Mon May 20, 2019 9:51 am

So sample app works but merging same concept into my main code base shows errors ... something still not quite right.

User avatar
doublemax
Moderator
Moderator
Posts: 13989
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: DLL build with MSVC works but GCC wont

Post by doublemax » Mon May 20, 2019 3:52 pm

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.
Use the source, Luke!

Post Reply