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
This commit is contained in:
@@ -28,8 +28,9 @@
|
|||||||
|
|
||||||
<exe id="sdk_exe" template="common_settings"
|
<exe id="sdk_exe" template="common_settings"
|
||||||
cond="PLATFORM_WIN32=='1'">
|
cond="PLATFORM_WIN32=='1'">
|
||||||
<app-type>gui</app-type>
|
<app-type>gui</app-type>
|
||||||
<sources>sdk_exe.cpp</sources>
|
<sources>sdk_exe.cpp</sources>
|
||||||
<library>my_dll</library>
|
<library>my_dll</library>
|
||||||
|
<sys-lib>user32</sys-lib>
|
||||||
</exe>
|
</exe>
|
||||||
</makefile>
|
</makefile>
|
||||||
|
@@ -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
|
$(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) @<<
|
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
|
$(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp
|
||||||
|
Reference in New Issue
Block a user