Unresolved symbol "wxEntryStart()"

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.
Post Reply
User avatar
vouk
Earned a small fee
Earned a small fee
Posts: 23
Joined: Fri Feb 15, 2019 7:34 am
Location: Germany
Contact:

Unresolved symbol "wxEntryStart()"

Post by vouk » Tue Sep 08, 2020 1:24 pm

Hi,

I upgraded from 3.1.2 to 3.1.4 (msw) and I was able to fix all the issues except for one.

Code: Select all

nmake /f makefile.vc BUILD=debug TARGET_CPU=X64
As I am using static libs wxWidgets in a custom DLL I need to have a custom startup logic.
Thats why i have this in my code:

Code: Select all

// Restore plugin's activation context.
if (act_ctx)
	actctx_activator actctx(act_ctx);

// Initialize application.
new wxApp();
if (instance)
	wxEntryStart(instance);
This worked fine with 3.1.2, but with 3.1.4 the linker reports an unresolved symbol:

Code: Select all

1>CVoukoder.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) bool __cdecl wxEntryStart(struct HINSTANCE__ *,struct HINSTANCE__ *,char *,int)" ([email protected]@[email protected]@[email protected])".
I have this lib files included in VS 2019:

wxmsw31ud_adv.lib
wxbase31ud_xml.lib
wxmsw31ud_html.lib
wxmsw31ud_richtext.lib
wxmsw31ud_propgrid.lib
wxmsw31ud_core.lib
wxbase31ud_net.lib
wxbase31ud.lib
wxtiffd.lib
wxjpegd.lib
wxpngd.lib
wxzlibd.lib
wxregexud.lib
wxexpatd.lib
%(AdditionalDependencies)
kernel32.lib
user32.lib
gdi32.lib
comdlg32.lib
winspool.lib
winmm.lib
shell32.lib
shlwapi.lib
comctl32.lib
ole32.lib
oleaut32.lib
uuid.lib
rpcrt4.lib
advapi32.lib
version.lib
wsock32.lib
wininet.lib
Mfplat.lib
Mfuuid.lib
Strmiids.lib

Does anybody know what to do?

Thanks,
Daniel

Post Reply