主题:如何生成Directx程序的Release版本?
Directx版的四子棋编好了,生成Debug版本时一切OK,但生成Relese版本时提示出错,为啥呢?怎么办啊?
下面是出错信息:
--------------------Configuration: 四子棋2 - Win32 Release--------------------
Compiling resources...
Compiling...
Ai.cpp
App.cpp
MyFrame.cpp
Linking...
MyFrame.obj : error LNK2001: unresolved external symbol _DirectDrawCreateEx@16
MyFrame.obj : error LNK2001: unresolved external symbol _IID_IDirectDraw7
nafxcw.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcw.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Release/四子棋2.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
四子棋2.exe - 5 error(s), 0 warning(s)
下面是出错信息:
--------------------Configuration: 四子棋2 - Win32 Release--------------------
Compiling resources...
Compiling...
Ai.cpp
App.cpp
MyFrame.cpp
Linking...
MyFrame.obj : error LNK2001: unresolved external symbol _DirectDrawCreateEx@16
MyFrame.obj : error LNK2001: unresolved external symbol _IID_IDirectDraw7
nafxcw.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcw.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Release/四子棋2.exe : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
四子棋2.exe - 5 error(s), 0 warning(s)