我是游戏开发的新手,我对 Goldsrc(Valve 的早期引擎)很感兴趣。
我找到了 Counter-Strike 1.6 (Modified Goldsrc) 的源代码并尝试用 VS2013 编译它。
几乎没有出现错误 - http://imagizer.imageshack.us/v2/800x600q90/809/qdfh.png
修改后的 Goldsrc - http://www.mediafire.com/download/798fcj9tb771r6z/CSSDK-master.rar
通常,当您调用未定义的内容时会出现此错误。 (例如,您调用的函数在您在源代码中 #include
的文件中没有主体)
An undefined external symbol (symbol) was found in function. To resolve this error, provide a definition for symbol or remove the code that references it
正如微软网站上所说。您可以按照他们的提示找到解决此错误的方法。
http://msdn.microsoft.com/en-us/library/799kze2z.aspx
编译 DLL 时,符号定义位于 Visual Studio 提供的 .lib
文件中。基本上,您必须包含那个 .lib
。文件在你的可执行文件中。
在“解决方案管理器”对话框中右键单击您的项目,然后单击Properties
。您必须转到 Common Properties
,然后单击 Add New Reference
。