源文件如下:
.../桌面/JoystImm/
directx.ico
joystimm.cpp
joystimm.mak
joystimm.mdp
joystimm.rc
makefile
resource.h
winmain.cpp组建时产生如下错误:
--------------------Configuration: joystimm - Win32 Debug--------------------
Compiling...
joystimm.cpp
Linking...
joystimm.obj : error LNK2001: unresolved external symbol _c_dfDIJoystick
joystimm.obj : error LNK2001: unresolved external symbol _DirectInputCreateEx@20
joystimm.obj : error LNK2001: unresolved external symbol "struct HINSTANCE__ * g_hInst" (?g_hInst@@3PAUHINSTANCE__@@A)
joystimm.obj : error LNK2001: unresolved external symbol "int g_bActive" (?g_bActive@@3HA)
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/joystimm.exe : fatal error LNK1120: 5 unresolved externals
执行 link.exe 时出错.joystimm.exe - 1 error(s), 0 warning(s)我将directx7 sdk的include和lib目录在vc++6.0中设置好了,还是不行,高手指点
.../桌面/JoystImm/
directx.ico
joystimm.cpp
joystimm.mak
joystimm.mdp
joystimm.rc
makefile
resource.h
winmain.cpp组建时产生如下错误:
--------------------Configuration: joystimm - Win32 Debug--------------------
Compiling...
joystimm.cpp
Linking...
joystimm.obj : error LNK2001: unresolved external symbol _c_dfDIJoystick
joystimm.obj : error LNK2001: unresolved external symbol _DirectInputCreateEx@20
joystimm.obj : error LNK2001: unresolved external symbol "struct HINSTANCE__ * g_hInst" (?g_hInst@@3PAUHINSTANCE__@@A)
joystimm.obj : error LNK2001: unresolved external symbol "int g_bActive" (?g_bActive@@3HA)
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/joystimm.exe : fatal error LNK1120: 5 unresolved externals
执行 link.exe 时出错.joystimm.exe - 1 error(s), 0 warning(s)我将directx7 sdk的include和lib目录在vc++6.0中设置好了,还是不行,高手指点
解决方案 »
- Windows 7 中进程被自动加入到PCA 前缀的JOB中
- WINDOWS.H重复引入问题,头痛中......
- C++函数log(LPWSTR,...),参数那的“...”三个点是什么意思?
- xp系统有没有自带mfc dll?
- 请问:win2000server family支持哪个版本的directx sdk.我装9.0不支持啊
- 如何在listctrl里显示BMP位图的缩略图(解决即给分)
- 几种常用协议的RFCs,需要的留下mail地址.
- MFC中可不可以调用C++标准函数库中的函数?
- 在VC++6.0中,出现"必需的资源无法得到",请帮忙
- [求助]MFC 同一窗口创建多SCOPE问题
- win32向导写DLL,VB里怎么不能调用呀?
- C++写了一个简单的SOCKET类,有兴趣的朋友可以帮我看看有什么需要改进的!
int g_bActive;3.工程类型错误(改为Win32 窗口程序);