Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Autodesk Maya 2008 / Compilation error while using c++
  RSS 2.0 ATOM  

Compilation error while using c++
Rate this thread
 
15757
 
Permlink of this thread  
avatar
  • amant
  • Posted: 18 August 2008 01:44 AM
  • Total Posts: 2
  • Joined: 14 August 2008 09:02 AM

Hello Everyone,

I am getting a compilation error in c++ ,as my window is in 64 bit platform and maya is 32 bit.
my question is can we compile a c++ plugin with this difference.

Thanks



Replies: 0
avatar
  • sboris
  • Posted: 20 August 2008 03:09 PM

You should compile for the platform you intend to support.

If you are using Visual Studio on a Windows 64 bit platform
then you should set the configuration to Win32 ( debug or release )
when you compile your plugin.

Some of it has to do with how the compiler handles 32bit and 64bit pointers.
Also, the Maya classes have compiler switches to deal with the 32bit and 64 bit
numbers.

Hope this helps.



Replies: 0