Author Topic: arx 2012 compilation errors + loading error  (Read 3211 times)

0 Members and 1 Guest are viewing this topic.

smans

  • Guest
arx 2012 compilation errors + loading error
« on: August 07, 2013, 10:27:10 AM »
Greetings everyone,   

I want to make a C++ ObjectARX 2012 project for AutoCAD 2012 SP2, using MS Visual Studio 2010 (on Windows 7 64-bits).
I was following the ObjectARX training documentation and set the "Platform Toolset" (located in the project properties under "Configuration Properties" in the "General" node) to v90 which refers to Visual Studio 2008.
I had an error telling me that Visual Studio 2008 wasn't installed on my computer. After installing it, compilation failed.   
127 errors were flagged, all in standard headers like stdlib.h,
ymath.h and float.h, to name a few.
One example :
- error C2059: syntax error : ')'    c:\objectarx 2012\inc\stdlib.h
 
I've tried setting the "Platform Toolset" to v100 (Visual Studio 2010),  then I was able to compile properly and produce an .arx file. Unfortunately, AutoCAD 2012 wasn't able to
load the ARX (named Step01.arx):

"step01.arx is incompatible with this version of AutoCAD.
AcRxDynamicLinker failed to load 'c:\objectarx
2012\projects\step01\debug\step01.arx'
C:\Program Files\Autodesk\AutoCAD 2012 - English\acad.exeUnable to load
Step01.arx file."

I was wondering if the "Platform Toolset" was the main cause of the problem, or if I might have another "hidden"
project property to modify.
I'd like to know if any of you had similar problems or have any sort of idea on how to resolve this.
Thank you in advance for your responses.

Best regards,

Smans

owenwengerd

  • Bull Frog
  • Posts: 439
Re: arx 2012 compilation errors + loading error
« Reply #1 on: August 07, 2013, 11:01:59 AM »
You need VS 2008 SP1. VS 2008 without SP1 will not work.

smans

  • Guest
Re: arx 2012 compilation errors + loading error
« Reply #2 on: August 07, 2013, 02:36:00 PM »
Hello,

I already have VS 2008 in its SP1 form.

Smans

smans

  • Guest
Re: arx 2012 compilation errors + loading error
« Reply #3 on: August 08, 2013, 09:34:00 AM »
Hi everyone,

After uninstalling and reinstalling VS2008 as well as ObjectARX2012, I finally could compile the project and load it(while making sure it targets x64 which corresponds to my AutoCAD 2012 version).

Thank you for your help.

Kindly,

Smans