Hello,
I’m trying to implement a Maya Plug-in (Maya 2011 64-bit) that uses CUDA (64-bit) but fail to compile since both <vector_types.h> from CUDA and <MTypes.h> from MAYA define datatypes with the same label.
I get 22 errors like these in Visual Studio 2008.
1>c:\program files\nvidia gpu computing toolkit\cuda\v3.2\include\vector_types.h(136) : error C2371: 'short2' : redefinition; different basic types
1> ..\Dependencies\include\maya/MTypes.h(245) : see declaration of 'short2'
1>c:\program files\nvidia gpu computing toolkit\cuda\v3.2\include\vector_types.h(148) : error C2371: 'short3' : redefinition; different basic types
1> ..\Dependencies\include\maya/MTypes.h(246) : see declaration of 'short3'
1>c:\program files\nvidia gpu computing toolkit\cuda\v3.2\include\vector_types.h(177) : error C2371: 'int2' : redefinition; different basic types
1> ..\Dependencies\include\maya/MTypes.h(249) : see declaration of 'int2'
1>c:\program files\nvidia gpu computing toolkit\cuda\v3.2\include\vector_types.h(184) : error C2371: 'int3' : redefinition; different basic types
1> ..\Dependencies\include\maya/MTypes.h(250) : see declaration of 'int3'
...
The problem I have is the same as the one in the following link (in french) but there’s no answer here:
I run Windows 7 64-bit and target to x64 platform but most probably that’s not relevant to the problem.
Has anyone found the same problem? How have you solved it?
Thanks in advance,
Nicolau Sunyer
University of Girona (Spain)