• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk ObjectARX

    Reply
    Member
    Posts: 3
    Registered: ‎01-18-2013
    Accepted Solution

    RealDWG 2013: fatal error C1900

    267 Views, 5 Replies
    01-18-2013 03:12 PM

    Hi,

     

    I’m updating my application(C++ code) to take advantage of RealDWG library 2013 so that my application can read AutoCAD 2013 drawing files. Now I’m stuck in a link issue .

     

    My C++ project is created in VC++ 2010. To be compatible with VC++ 2008, I set “Platform Toolset” as “V90”(V90 means VC2008). I have both VS2010 and VS2008 installed on my machine.

     

    It worked well with RealDWG 2011 and 2012. However, after I changed settings in VS to use RealDWG 2013, my code couldn’t be built. The error is:

     

    LINK : fatal error C1900: Il mismatch between 'P1' version '20081201' and 'P2' version '20080116'

    LINK : fatal error LNK1257: code generation failed

     

    I googled. One solution is to change compiler switch for static library. It’s impossible for me because I can’t recompile the library. The other solution is install VS2008 SP1. Many people got the problem fixed after installing SP1, but it didn’t work for me.

     

    I also tried to compile it by changing “Platform Toolset” to “V100”(V100 means VC2010). It succeeded. But it wasn't what I wanted. If it is built in VC2010, my clients have to install VC2010 redistributable package on their machines.

     

    Is this a RealDWG 2013 issue, or a VS issue, or RealDWG can't be compiled in VC2008 any more?

     

    Thanks in advance.

     

    Some links on this issue:

    http://msdn.microsoft.com/en-us/library/ks07be9f(v=vs.90).aspx

    http://connect.microsoft.com/VisualStudio/feedback/details/633817/fatal-error-c1900

    http://stackoverflow.com/questions/132270/fatal-error-c1900-il-mismatch-between-p1-version-20060201-...

     

     

    Please use plain text.
    Employee
    artc2
    Posts: 120
    Registered: ‎06-08-2010

    Re: RealDWG 2013: fatal error C1900

    01-18-2013 06:21 PM in reply to: Jeffrey.Tian

    RealDWG 2013 requires the VC 2010 runtime.

    Please use plain text.
    Member
    Posts: 3
    Registered: ‎01-18-2013

    Re: RealDWG 2013: fatal error C1900

    01-21-2013 07:52 AM in reply to: artc2

    Thank you, artc2.

     

    I just checked the document, however, it seems v90 platform is still supported. Please see attached screen shot.

    Please use plain text.
    Employee
    artc2
    Posts: 120
    Registered: ‎06-08-2010

    Re: RealDWG 2013: fatal error C1900

    01-21-2013 09:41 AM in reply to: Jeffrey.Tian

    It's not really clear, but that appears to be explaiing how to set up VC 2010 to build ARX and .NET apps for Acad 2011 and Acad 2012.  RealDWG (and Acad) 2013 does require the VC 2010 runtime.

    Please use plain text.
    Member
    Posts: 3
    Registered: ‎01-18-2013

    Re: RealDWG 2013: fatal error C1900

    01-21-2013 09:56 AM in reply to: artc2

    Yes, it's for ARX, but it is the docs I got after installing RealDWG 2013.

     

    For RealDWG 2013, I can't set "Platform Toolset" = "v90" in VS2010 to make my application compatible with VC++ 2008. Am I right?

    Please use plain text.
    Employee
    artc2
    Posts: 120
    Registered: ‎06-08-2010

    Re: RealDWG 2013: fatal error C1900

    01-21-2013 08:01 PM in reply to: Jeffrey.Tian

    That is correct.

    Please use plain text.