by Fenton Webb
If you are building a RealDWG application using the C++ API then you will have to link your application with the RealDWG SDK rcexelib.obj so that your application will run.
The thing is with all Autodesk products, we give them to you compiled in Visual Studio ‘Release’ mode, not in ‘Debug’ mode therefore you have to be careful when trying to run in Debug mode.
The reason you have to be careful is because the default Visual Studio project setup for a Debug project is that it:
- Defines _DEBUG preprocessor
- Sets the Runtime Library as Multithreaded Debug DLL
If you try and build your RealDWG application in Debug mode with these settings, the linker will have some issues because the RealDWG SDK that you are linking to is built with the NDEBUG preprocessor symbol and Multithreaded DLL. This conflict will either give errors/warnings when building and ultimately crash your application when run.
Therefore, to get your RealDWG to build properly in debug mode, you need to make sure you have _DEBUG not set and also make sure you have Multithreaded DLL set as the Runtime Library…