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
<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>
\r
$(OBJS)\sdk_exe.exe: $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.dll\r
link /NOLOGO /OUT:$@ $(__DEBUGINFO) /pdb:"$(OBJS)\sdk_exe.pdb" $(__DEBUGINFO_33) $(LINK_TARGET_CPU) /SUBSYSTEM:WINDOWS $(LDFLAGS) @<<\r
- $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.lib\r
+ $(SDK_EXE_OBJECTS) $(OBJS)\my_dll.lib user32.lib\r
<<\r
\r
$(OBJS)\my_dll_my_dll.obj: .\my_dll.cpp\r