所以我是新來的C + +和在過去幾天我一直在試圖讓程序來編譯。我爲我的幻像OMNI下載了OpenHaptics,並一直試圖獲得一個簡單的球體程序來編譯。它給我的錯誤如下(我正在使用Visual c + + 2010)OpenHaptics不compliling
我認爲問題是它可能不會讀取glut32.dll文件(基於互聯網研究)如何添加此.dll文件,以便編譯器看到它,或者如果有另一個問題,我該如何解決它?
------ Build started: Project: Spheretest, Configuration: Debug Win32 ------
Sphereguts.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl qhStart(void)" ([email protected]@YAXXZ) referenced in function _main
Sphereguts.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall QHRenderer::tell(class Cursor *)" ([email protected]@@[email protected]@@Z) referenced in function _main
Sphereguts.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Cursor::Cursor(void)" ([email protected]@[email protected]) referenced in function _main
Sphereguts.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall QHRenderer::tell(class Sphere *)" ([email protected]@@[email protected]@@Z) referenced in function _main
Sphereguts.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall Sphere::Sphere(void)" ([email protected]@[email protected]) referenced in function _main
Sphereguts.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall QHRenderer::tell(class DeviceSpace *)" ([email protected]@@[email protected]@@Z) referenced in function _main
Sphereguts.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall DeviceSpace::DeviceSpace(void)" ([email protected]@[email protected]) referenced in function _main
Sphereguts.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QHGLUT::QHGLUT(int,char * * const)" ([email protected]@[email protected]@Z) referenced in function _main
MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function ___tmainCRTStartup
C:\Users\Ryan Grainger\Desktop\c++ test\Spheretest\Debug\Spheretest.exe : fatal error LNK1120: 9 unresolved externals
==========生成:0成功,1失敗,0上最新,0已跳過==========
聽起來像你沒有鏈接到OpenHaptics庫。 – cdhowie 2012-07-25 22:47:42
好吧,我厭倦了開放觸覺不起作用,所以我基本上有一個文件夾現在與我連接的所有內容。 – 2012-07-25 23:03:05