From: Vadim Zeitlin Date: Wed, 9 Dec 2009 13:31:46 +0000 (+0000) Subject: Explicitly link the SDK application example with user32.lib. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/40ff2729903138b3a328515e469e1c522ebb29e1?ds=inline Explicitly link the SDK application example with user32.lib. As this sample uses GUI Windows functions, it requires this library. Not sure why it isn't added by bakefile automatically for app-type==gui target. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/dll/dll.bkl b/samples/dll/dll.bkl index ef8b2996a2..271f293ab6 100644 --- a/samples/dll/dll.bkl +++ b/samples/dll/dll.bkl @@ -28,8 +28,9 @@ - gui - sdk_exe.cpp + gui + sdk_exe.cpp my_dll + user32 diff --git a/samples/dll/makefile.vc b/samples/dll/makefile.vc index ae8fb98fb4..5e8f55bc9f 100644 --- a/samples/dll/makefile.vc +++ b/samples/dll/makefile.vc @@ -412,7 +412,7 @@ $(OBJS)\wx_exe.exe: $(WX_EXE_OBJECTS) $(OBJS)\wx_exe_sample.res $(OBJS)\my_dll.d $(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll link /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\sdk_exe.pdb" $(__DEBUGINFO_33) $(LINK_TARGET_CPU) /SUBSYSTEM:WINDOWS $(LDFLAGS) @<< - $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.lib + $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.lib user32.lib << $(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp