Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
H3D.org Feeds


Browsing this Thread:   1 Anonymous Users




(1) 2 »


Openhaptics with H3D
#1
Not too shy to talk
Not too shy to talk


See User information
Hello guys!
I am a beginner of Openhaptics and I want to program with h3d.
Here is my simple code:

#include
#include
#include

int main(int argc, char *argv[])
{

return 0;
}

and I do debug on platform x64 configuration with the setting below:
1.C/C++->
Additional Include Directories:
C:\OpenHaptics\Academic\3.2\include
C:\OpenHaptics\Academic\3.2\utilities\include
C:\OpenHaptics\Academic\3.2\Quickhaptics\header
2.C/C++->Code Generation->Runtime Library:
Multi-threaded Debug DLL (/MDd)
3.Linker->General->Additional Library Directories:
C:\OpenHaptics\Academic\3.2\lib\x64\DebugAcademicEdition;
C:\OpenHaptics\Academic\3.2\utilities\lib\x64\DebugAcademicEdition;
C:\OpenHaptics\Academic\3.2\Quickhaptics\lib\x64\DebugAcademicEdition;%(AdditionalLibraryDirectories)
4.Linker->Input->Additional Dependencies:
hd.lib;hdu.lib;hl.lib;hlu.lib;hapticmouse.lib;snapconstraints.lib;Qh.lib;QHWin32Wrapper.lib;QHGLUTWrapper.lib;glut32.lib;glui32.lib;
%(AdditionalDependencies)
and I got these error messages:

main.cpp
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35): error C2146: syntax error : missing ';' before identifier 'HHD'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35): error C2146: syntax error : missing ';' before identifier 'hdInitDevice'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(39): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(39): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(39): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(39): error C2146: syntax error : missing ';' before identifier 'hdMakeCurrentDevice'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(39): error C2182: 'HDAPIENTRY' : illegal use of type 'void'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(39): error C2371: 'HDAPIENTRY' : redefinition; different basic types
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPIENTRY'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(39): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(42): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(42): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(42): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(42): error C2146: syntax error : missing ';' before identifier 'hdDisableDevice'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(42): error C2182: 'HDAPIENTRY' : illegal use of type 'void'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(42): error C2371: 'HDAPIENTRY' : redefinition; different basic types
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPIENTRY'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(42): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(45): error C2146: syntax error : missing ';' before identifier 'HHD'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(45): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(45): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(45): error C2146: syntax error : missing ';' before identifier 'hdGetCurrentDevice'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(45): error C2086: 'HHD HDAPIENTRY' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPIENTRY'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(45): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(50): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(50): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(50): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(50): error C2146: syntax error : missing ';' before identifier 'hdBeginFrame'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(50): error C2182: 'HDAPIENTRY' : illegal use of type 'void'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(50): error C2371: 'HDAPIENTRY' : redefinition; different basic types
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPIENTRY'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(50): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(51): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(51): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(51): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(51): error C2146: syntax error : missing ';' before identifier 'hdEndFrame'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(51): error C2182: 'HDAPIENTRY' : illegal use of type 'void'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(51): error C2371: 'HDAPIENTRY' : redefinition; different basic types
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPIENTRY'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(51): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(55): error C2146: syntax error : missing ';' before identifier 'HDErrorInfo'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(55): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(55): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(55): error C2146: syntax error : missing ';' before identifier 'hdGetError'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(55): error C2371: 'HDAPIENTRY' : redefinition; different basic types
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPIENTRY'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(55): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(59): error C2146: syntax error : missing ';' before identifier 'HDstring'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(59): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(59): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(59): error C2146: syntax error : missing ';' before identifier 'hdGetErrorString'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(59): error C2373: 'HDAPIENTRY' : redefinition; different type modifiers
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPIENTRY'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(59): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(63): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(63): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(63): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(63): error C2146: syntax error : missing ';' before identifier 'hdEnable'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(63): error C2182: 'HDAPIENTRY' : illegal use of type 'void'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(63): error C2371: 'HDAPIENTRY' : redefinition; different basic types
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPIENTRY'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(63): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(64): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(64): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(64): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(64): error C2146: syntax error : missing ';' before identifier 'hdDisable'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(64): error C2182: 'HDAPIENTRY' : illegal use of type 'void'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(64): error C2371: 'HDAPIENTRY' : redefinition; different basic types
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPIENTRY'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(64): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(65): error C2146: syntax error : missing ';' before identifier 'HDboolean'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(65): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(65): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(65): error C2146: syntax error : missing ';' before identifier 'hdIsEnabled'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(65): error C2371: 'HDAPIENTRY' : redefinition; different basic types
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPIENTRY'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(65): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(69): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(69): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(69): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(69): error C2146: syntax error : missing ';' before identifier 'hdGetBooleanv'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(69): error C2182: 'HDAPIENTRY' : illegal use of type 'void'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(69): error C2371: 'HDAPIENTRY' : redefinition; different basic types
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPIENTRY'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(69): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(70): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(70): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(70): error C2146: syntax error : missing ';' before identifier 'hdGetIntegerv'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(70): error C2182: 'HDAPIENTRY' : illegal use of type 'void'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(70): error C2371: 'HDAPIENTRY' : redefinition; different basic types
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPIENTRY'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(71): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(71): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(71): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(71): error C2146: syntax error : missing ';' before identifier 'hdGetFloatv'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(71): error C2182: 'HDAPIENTRY' : illegal use of type 'void'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(71): error C2371: 'HDAPIENTRY' : redefinition; different basic types
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPIENTRY'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(71): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(72): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(72): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(72): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(72): error C2146: syntax error : missing ';' before identifier 'hdGetDoublev'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(72): error C2182: 'HDAPIENTRY' : illegal use of type 'void'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(72): error C2371: 'HDAPIENTRY' : redefinition; different basic types
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPIENTRY'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(72): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(73): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(73): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(73): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(73): error C2146: syntax error : missing ';' before identifier 'hdGetLongv'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(73): error C2182: 'HDAPIENTRY' : illegal use of type 'void'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(73): error C2371: 'HDAPIENTRY' : redefinition; different basic types
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPIENTRY'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(73): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(74): error C2146: syntax error : missing ';' before identifier 'HDstring'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(74): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(74): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(74): error C2146: syntax error : missing ';' before identifier 'hdGetString'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(74): error C2373: 'HDAPIENTRY' : redefinition; different type modifiers
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPIENTRY'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(74): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(78): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(78): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(78): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(78): error C2146: syntax error : missing ';' before identifier 'hdSetBooleanv'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(78): error C2182: 'HDAPIENTRY' : illegal use of type 'void'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(78): error C2371: 'HDAPIENTRY' : redefinition; different basic types
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPIENTRY'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(78): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(79): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(79): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(79): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(79): error C2146: syntax error : missing ';' before identifier 'hdSetIntegerv'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(79): error C2182: 'HDAPIENTRY' : illegal use of type 'void'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(79): error C2371: 'HDAPIENTRY' : redefinition; different basic types
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPIENTRY'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(79): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(80): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(80): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(80): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(80): error C2146: syntax error : missing ';' before identifier 'hdSetFloatv'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(80): error C2182: 'HDAPIENTRY' : illegal use of type 'void'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(80): error C2371: 'HDAPIENTRY' : redefinition; different basic types
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPIENTRY'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(80): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(81): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(81): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(81): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(81): error C2146: syntax error : missing ';' before identifier 'hdSetDoublev'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(81): error C2182: 'HDAPIENTRY' : illegal use of type 'void'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(81): error C2371: 'HDAPIENTRY' : redefinition; different basic types
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPIENTRY'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(81): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(82): error C2144: syntax error : 'void' should be preceded by ';'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(82): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(82): error C2086: 'int HDAPI' : redefinition
1> C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(35) : see declaration of 'HDAPI'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(82): error C2146: syntax error : missing ';' before identifier 'hdSetLongv'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(82): error C2182: 'HDAPIENTRY' : illegal use of type 'void'
1>C:\OpenHaptics\Academic\3.2\include\HD/hdDevice.h(82): fatal error C1003: error count exceeds 100; stopping compilation
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Can someone give me an idea of this situation?
In addition, I can run the example codes successfully with DebugAcademicEdition.
Should I use the same configuration as example do?
If so, how to import DebugAcademicEdition into the program?
My platform is Visual Studio 2010 C++ expression on Win7 x64

Posted on: 2013/11/10 0:04
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Openhaptics with H3D
#2
Webmaster
Webmaster


See User information
What are you aiming to do? Why do you want to use OpenHaptics commands instead of just use H3D/HAPI code?

Posted on: 2013/11/11 7:38
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Openhaptics with H3D
#3
Not too shy to talk
Not too shy to talk


See User information
Well,
My haptic device is Phantom Omni,
and the openhaptic is necessary even though I develop by H3d.
I just follow the manual the company provided step by step;
However, it still goes wrong....

I also post my problem in their Forum but nobody answers.

Besides, I haven't see any C++ example for H3d, which made me difficult to implement....

How could I get c++ examples and tutorial?

Posted on: 2013/11/12 4:53
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Openhaptics with H3D
#4
Webmaster
Webmaster


See User information
The haptics portion of H3D is implemented through HAPI (comes with windows H3D installation) and the "tutorials/examples" for HAPI can be found listed here:
http://www.h3dapi.org/modules/mediawi ... /HAPI_Examples_repository
There are also some other pages in the wiki. http://www.h3dapi.org/modules/mediawiki/index.php/Main_Page

Depending on what you need to do it might of course be easier to just use H3D since it contains classes (called nodes on X3D level) that can handle quite a lot of things, that is why I asked what you should accomplish in the end. C++ examples using H3D can be found at the end of the manual and in the H3D/H3DAPI/examples/manualExamples directory and there is some information in the wiki about how to create new nodes and such.


And to answer your original question. I assume you set the includes correctly and checked if there are any preprocessor directives that are needed. Your best bet is probably to compare against the examples that comes with OpenHaptics since those should compile, then just copy that setup when it comes to includes, preprocessor directives and libraries to link against.

Posted on: 2013/11/12 7:42
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Openhaptics with H3D
#5
Not too shy to talk
Not too shy to talk


See User information
What are the differences between H3DAPI and HAPI?

By the way, after I install the H3DAPI and HAPI, I start the first example in the HAPI manual.The example is as follow:

#include
#include
using namespace HAPI;
int main(int argc, char* argv[]) {
// The force to render
Vec3 force_to_render = Vec3( 1, 0, 0 );
// Create a new haptics device, using any device connected.
auto_ptr< AnyHapticsDevice > device( new AnyHapticsDevice );
// initialize the device
if( device->initDevice() != HAPIHapticsDevice::SUCCESS ) {
// initilization failed, print error message and quit
cerr << device->getLastErrorMsg() << endl;
return 1;
}
// enable the device(forces and positions will be updated)
device->enableDevice();
// add the force effect to render
device->addEffect( new HapticForceField( force_to_render ) );
// transfer the effect to the haptics loop.
device->transferObjects();
// wait for keyboard ENTER press, then finish program
string temp_string;
getline( cin, temp_string );
// release the device.
device->releaseDevice();
return 0;}

and an error occur..
>LINK : fatal error LNK1181: cannot open input file '..\..\H3DUtil\Release\H3DUtil_vc10.lib'
What should I do?
And how can I know which libraries I have to include and which are unnecessary?

Posted on: 2013/11/13 5:34
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Openhaptics with H3D
#6
Webmaster
Webmaster


See User information
How did you generate the examples project? Since it looks like it got some library files incorrect or something.

Is this for the Debug or Release build?

The main difference between HAPI and H3DAPI is that HAPI is on a lower level. C++ only can be used and there are no specific graphics required for HAPI (although OpenGL and glut can be used for some features, but they are not required).

H3DAPI required OpenGL and contains both graphics and haptics capabilities. You can also program using X3D/python only (for rapid prototyping at least) so no need to go down to C++ level for quite extensive applications.

Posted on: 2013/11/13 11:44
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Openhaptics with H3D
#7
Not too shy to talk
Not too shy to talk


See User information
I use the release on x64 platfrom.

I attach my setting as below:

1.C/C++->General->Additional Include Directories:
C:/H3D/HAPI/build/../include
C:/H3D/H3DUtil/build/../include
C:/H3D/External/include/FreeImage/Dist
C:/H3D/External/include/zlib
C:/H3D/External/include
C:/H3D/External/include/pthread
C:/Program Files (x86)/SensAble/3DTouch/include
C:/H3D/HAPI/build/../OpenHapticsRenderer/include
C:/H3D/External/include/DHD-API
C:/H3D/HAPI/examples/SurfaceExample/build/..
2.Linker->Input->Additional Dependencies:
kernel32.lib
user32.lib
gdi32.lib
winspool.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
comdlg32.lib
advapi32.lib
..\..\H3DUtil\Release\H3DUtil_vc10.lib
..\..\Release\HAPI_vc10.lib
C:\H3D\External\lib64\static\dcmimgle_vc10.lib
C:\H3D\External\lib64\static\dcmdata_vc10.lib
C:\H3D\External\lib64\static\ofstd_vc10.lib
C:\H3D\External\lib64\static\dcmimage_vc10.lib
C:\H3D\External\lib64\static\dcmjpeg_vc10.lib
C:\H3D\External\lib64\static\ijg8_vc10.lib
C:\H3D\External\lib64\static\ijg12_vc10.lib
C:\H3D\External\lib64\static\ijg16_vc10.lib
netapi32.lib
ws2_32.lib
C:\H3D\External\lib64\teem.lib
C:\H3D\External\lib64\pthreadVC2.lib
C:\H3D\External\lib64\FreeImage.lib
C:\H3D\External\lib64\zlib.lib
glu32.lib
opengl32.lib
winmm.lib
DelayImp.lib
C:\Program Files (x86)\SensAble\3DTouch\lib\hd.lib
C:\Program Files (x86)\SensAble\3DTouch\lib\hl.lib
C:\Program Files (x86)\SensAble\3DTouch\utilities\lib\hdu.lib
C:\H3D\External\lib64\dhdms64.lib
C:\H3D\External\lib64\virtuoseDLL.lib
C:\H3D\External\lib64\EntactAPI.lib


Did I miss something?

Posted on: 2013/11/15 7:45
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Openhaptics with H3D
#8
Not too shy to talk
Not too shy to talk


See User information
I use the release on x64 platfrom.

I attach my setting as below:

1.C/C++->General->Additional Include Directories:
C:/H3D/HAPI/build/../include
C:/H3D/H3DUtil/build/../include
C:/H3D/External/include/FreeImage/Dist
C:/H3D/External/include/zlib
C:/H3D/External/include
C:/H3D/External/include/pthread
C:/Program Files (x86)/SensAble/3DTouch/include
C:/H3D/HAPI/build/../OpenHapticsRenderer/include
C:/H3D/External/include/DHD-API
C:/H3D/HAPI/examples/SurfaceExample/build/..
2.Linker->Input->Additional Dependencies:
kernel32.lib
user32.lib
gdi32.lib
winspool.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
comdlg32.lib
advapi32.lib
..\..\H3DUtil\Release\H3DUtil_vc10.lib
..\..\Release\HAPI_vc10.lib
C:\H3D\External\lib64\static\dcmimgle_vc10.lib
C:\H3D\External\lib64\static\dcmdata_vc10.lib
C:\H3D\External\lib64\static\ofstd_vc10.lib
C:\H3D\External\lib64\static\dcmimage_vc10.lib
C:\H3D\External\lib64\static\dcmjpeg_vc10.lib
C:\H3D\External\lib64\static\ijg8_vc10.lib
C:\H3D\External\lib64\static\ijg12_vc10.lib
C:\H3D\External\lib64\static\ijg16_vc10.lib
netapi32.lib
ws2_32.lib
C:\H3D\External\lib64\teem.lib
C:\H3D\External\lib64\pthreadVC2.lib
C:\H3D\External\lib64\FreeImage.lib
C:\H3D\External\lib64\zlib.lib
glu32.lib
opengl32.lib
winmm.lib
DelayImp.lib
C:\Program Files (x86)\SensAble\3DTouch\lib\hd.lib
C:\Program Files (x86)\SensAble\3DTouch\lib\hl.lib
C:\Program Files (x86)\SensAble\3DTouch\utilities\lib\hdu.lib
C:\H3D\External\lib64\dhdms64.lib
C:\H3D\External\lib64\virtuoseDLL.lib
C:\H3D\External\lib64\EntactAPI.lib


Did I miss something?

Posted on: 2013/11/15 7:45
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Openhaptics with H3D
#9
Webmaster
Webmaster


See User information
I am guessing that this path is incorrect
..\..\H3DUtil\Release\H3DUtil_vc10.lib
and the same for HAPI path.
Open CMake GUI, check "Advanced" and "Grouped" check boxes and find H3DUTIL_LIBRARY and H3DUTIL_DEBUG_LIBRARY and set them to point to the correct paths, then do the same for HAPI_LIBRARY and HAPI_DEBUG_LIBRARY. If you built H3DAPI/HAPI/H3DUtil yourself remember to build the INSTALL project for both Release and Debug.

Posted on: 2013/11/15 8:26
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top


Re: Openhaptics with H3D
#10
Not too shy to talk
Not too shy to talk


See User information
Sorry,
I've checked the Group and Advanced boxes.
Then,I set the source code C:/H3D/H3DUtil/build
and build the binaries C:/H3D/H3DUtil/build/x64
However,
I can't find anything you mention in CMake.
Can you tell me in specific?

Posted on: 2013/11/16 14:08
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong Top




(1) 2 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create pdf.
You cannot get print page.

[Advanced Search]





(C) 2012 SenseGraphics AB    ---    Powered by XOOPS