microsoft / Xbox-GDK-Samples

Game development samples published by the Xbox Advanced Technology Group using the Microsoft GDK.
http://aka.ms/gamedevdocs
MIT License
218 stars 32 forks source link

why GDK samples(console) exclude so many libs? #12

Closed seocho3 closed 1 year ago

seocho3 commented 2 years ago

$(IgnoreSpecificDefaultLibraries);advapi32.lib;comctl32.lib;comsupp.lib;dbghelp.lib;gdi32.lib;gdiplus.lib;guardcfw.lib;kernel32.lib;mmc.lib;msimg32.lib;msvcole.lib;msvcoled.lib;mswsock.lib;ntstrsafe.lib;ole2.lib;ole2autd.lib;ole2auto.lib;ole2d.lib;ole2ui.lib;ole2uid.lib;ole32.lib;oleacc.lib;oleaut32.lib;oledlg.lib;oledlgd.lib;oldnames.lib;runtimeobject.lib;shell32.lib;shlwapi.lib;strsafe.lib;urlmon.lib;user32.lib;userenv.lib;wlmole.lib;wlmoled.lib;onecore.lib;

they can not be used in Xbox console game development?

walbourn commented 1 year ago

The Microsoft GDK with Xbox extensions provides a specific umbrella library xgameplatform.lib which provides all the Win32 API imports that are supported for the Xbox Game OS.

The list of ignore libraries avoids potential problems with 'mixing' umbrella libraries that have historically caused linker problems and exposed some unusual bugs as a result.

Note that /NODEFAULTLIB only works at suppressing #pragma comment(lib,"") statements. Explicit references to 'unsupported' libraries need to be removed from the build.