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:
Vadim Zeitlin 2009-12-09 13:31:46 +00:00
parent 54a3120e95
commit 40ff272990
2 changed files with 4 additions and 3 deletions

View File

@ -28,8 +28,9 @@
<exe id="sdk_exe" template="common_settings"
cond="PLATFORM_WIN32=='1'">
<app-type>gui</app-type>
<sources>sdk_exe.cpp</sources>
<app-type>gui</app-type>
<sources>sdk_exe.cpp</sources>
<library>my_dll</library>
<sys-lib>user32</sys-lib>
</exe>
</makefile>

View File

@ -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