How to compile SDL program and run it without DLL

倖福魔咒の 提交于 2019-12-06 07:20:20

Typically the procedure for this kind of stuff is:

  1. Download the source code for the library. In SDL's case: http://www.libsdl.org/download-1.2.php.
  2. Build the library on your machine into a static lib (on Windows, this would be a .lib).
  3. Drop the .lib in some folder along with the rest of your project and set up the project properties to link to it. Don't forget about the header files.

These steps can be more of a pain on Windows because source code distros may not be as Windows friendly. Some might have Visual Studio projects, others might force you to use nmake.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!