<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: error LNK2038: mismatch detected in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4368223#M13347</link>
    <description>&lt;P&gt;If sample have&lt;/P&gt;&lt;PRE&gt;#include "aced.h"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I can't build it. If sample do not have it I can build. But only one sample did not had it. As I have read on internet it is because after compile of my file functions in aced.h is named differently from same functions in rxapi.lib.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Aug 2013 19:18:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-08-15T19:18:57Z</dc:date>
    <item>
      <title>error LNK2038: mismatch detected</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4367231#M13345</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I decided to try and learn how to program on AutoCAD using C++. I use linux (Ubuntu) at home so I have used VirtualBox and installed Windows 8 Enterprise Evalution 64bit, AutoCAD Civil 3D 2014, Autodesk ObjectARX 2014 win 64 and its documentation, Microsoft Visual Studio Express 2012 (Visual C++ 2012).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using ObjectARX dokumenttion set settings for project and copy - past first minimal example. And it worked. But trying to build next example (command registration "acedRegCmds") I get 5 errors. And it happens only after including "aced.h".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in test01.obj (File: rxapi.lib(libinit.obj))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and other errors are&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LNK2019: unresoled external symbol...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I can't find a fix for it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#include "stdafx.h"
#include "tchar.h"
#include "rxregsvc.h"
#include "acutads.h"
#include "aced.h"

void initApp();
void unloadApp();
void helloWorld();

void initApp() {
	acedRegCmds-&amp;gt;addCommand(_T("HELLOWORLD_COMMANDS"), _T("Hello"), _T("Labas"), ACRX_CMD_TRANSPARENT, helloWorld);
}

void unloadApp() {
	acedRegCmds-&amp;gt;removeGroup(_T("HELLOWORLD_COMMANDS"));
}

void helloWorld() {
	acutPrintf(_T("\n Labas pasauli!"));
}

extern "C" AcRx::AppRetCode acrxEntryPoint(AcRx::AppMsgCode msg, void* appId) {
    switch(msg) {
		case AcRx::kInitAppMsg:
			acrxUnlockApplication(appId);
			acrxRegisterAppMDIAware(appId);
			initApp();
			acutPrintf(_T("\nExample Application Loaded"));
			break;
		case AcRx::kUnloadAppMsg:
			unloadApp();
			acutPrintf(_T("\nExample Application Unloaded"));
			break;
    }
    return AcRx::kRetOK;
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2013 08:02:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4367231#M13345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-15T08:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2038: mismatch detected</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4367873#M13346</link>
      <description>&lt;P&gt;Can you build the SDK sample projects successfully? If so, you can compare settings to find where you've gone wrong. Keep in mind that VS Express has some limitations, so not all sample projects may build successfully in Express.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2013 14:52:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4367873#M13346</guid>
      <dc:creator>owenwengerd</dc:creator>
      <dc:date>2013-08-15T14:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2038: mismatch detected</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4368223#M13347</link>
      <description>&lt;P&gt;If sample have&lt;/P&gt;&lt;PRE&gt;#include "aced.h"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I can't build it. If sample do not have it I can build. But only one sample did not had it. As I have read on internet it is because after compile of my file functions in aced.h is named differently from same functions in rxapi.lib.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2013 19:18:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4368223#M13347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-15T19:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2038: mismatch detected</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4368268#M13348</link>
      <description>&lt;P&gt;Can you&amp;nbsp;still download&amp;nbsp;Visual Studio Express 2010? I'm not sure if VS 2012 Express supports the v100 Platform Toolset.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2013 19:55:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4368268#M13348</guid>
      <dc:creator>owenwengerd</dc:creator>
      <dc:date>2013-08-15T19:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2038: mismatch detected</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4368285#M13349</link>
      <description>&lt;P&gt;Right now I am trying to download VS2010Express. Will see if can install. And VS2012 do not have Platform Toolset v100, here are only v110.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2013 20:04:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4368285#M13349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-15T20:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2038: mismatch detected</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4369953#M13350</link>
      <description>&lt;P&gt;I have installed Visual C++ 2010 Express. After long configuration and error fixing I got to 3 errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;1&amp;gt;     Creating library c:\users\donatas\documents\visual studio 2010\Projects\test02\Debug\test02.lib and object c:\users\donatas\documents\visual studio 2010\Projects\test02\Debug\test02.exp
1&amp;gt;test02.obj : error LNK2019: unresolved external symbol __imp__acrxSysRegistry referenced in function "void __cdecl initApp(void)" (?initApp@@YAXXZ)
1&amp;gt;test02.obj : error LNK2019: unresolved external symbol "public: static class AcRxClass * __cdecl AcEdCommandStack::desc(void)" (?desc@AcEdCommandStack@@SAPAVAcRxClass@@XZ) referenced in function "public: static class AcEdCommandStack * __cdecl AcEdCommandStack::cast(class AcRxObject const *)" (?cast@AcEdCommandStack@@SAPAV1@PBVAcRxObject@@@Z)
1&amp;gt;test02.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall AcRxClass::isDerivedFrom(class AcRxClass const *)const " (__imp_?isDerivedFrom@AcRxClass@@QBE_NPBV1@@Z) referenced in function "public: bool __thiscall AcRxObject::isKindOf(class AcRxClass const *)const " (?isKindOf@AcRxObject@@QBE_NPBVAcRxClass@@@Z)
1&amp;gt;c:\users\donatas\documents\visual studio 2010\Projects\test02\Debug\test02.arx : fatal error LNK1120: 3 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2013 14:40:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4369953#M13350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-16T14:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2038: mismatch detected</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4370113#M13351</link>
      <description>&lt;P&gt;Can you now&amp;nbsp;open a sample project and build without errors? There is no point trying to&amp;nbsp;fix errors on&amp;nbsp;your own project until the system is correctly configured. If the samples build, then you can compare settings and know with some confidence that it's just a matter of fixing the project settings. In this case, it looks like you're not linking to the needed ObjectARX libraries. This could be because you have not specified their location in the linker settings (Additional Library Directories).&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2013 16:02:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4370113#M13351</guid>
      <dc:creator>owenwengerd</dc:creator>
      <dc:date>2013-08-16T16:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2038: mismatch detected</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4370467#M13352</link>
      <description>&lt;P&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;I was able to build samples and copy-past my code into one of samples, I was able to build it. But did not found yet how to set right setings manually. But trying to load (appload) in to AutoCAD I get an error (test02.arx is incompatible with this version of AutoCAD. AcRxDynamicLinker failed to load )&lt;BR /&gt;&lt;BR /&gt;I guess it was build as 32bit file, but I have 64bit AutoCAD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. yestedey I was trying to write this message but could not. Got an error.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2013 06:14:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4370467#M13352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-17T06:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2038: mismatch detected</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4371054#M13353</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;...I guess it was build as 32bit file, but I have 64bit AutoCAD...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. yestedey I was trying to write this message but could not. Got an error.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Visual Studio 2010 &lt;STRONG&gt;Express&lt;/STRONG&gt; edition can build only 32-bit exe/dll/arx/db-files. So in order to build valid 64-bit arx-file you have to use (at least) Visual Studio 2010 &lt;STRONG&gt;Professional &lt;/STRONG&gt; edition.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2013 19:17:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4371054#M13353</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-08-17T19:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2038: mismatch detected</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4371531#M13354</link>
      <description>&lt;P&gt;hmmmm, so a bad news. Only paid software can build 64bit programs for windows. And AutoCAD is only 64bit from now on.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2013 15:07:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4371531#M13354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-18T15:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2038: mismatch detected</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4371557#M13355</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;hmmmm, so a bad news. Only paid software can build 64bit programs for windows. And AutoCAD is only 64bit from now on.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It's not quite a fair statement. You can use AutoCAD .NET API with full free IDE &lt;A href="http://www.icsharpcode.net/opensource/sd/" target="_blank"&gt;SharpDevelop&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Also I've read but not tested that link: &lt;A class="question-hyperlink" href="http://stackoverflow.com/questions/1865069/how-to-compile-a-64-bit-application-using-visual-c-2010-express" target="_blank"&gt;How to compile a 64-bit application using Visual C++ 2010 Express?&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2013 15:52:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4371557#M13355</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2013-08-18T15:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2038: mismatch detected</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4371575#M13356</link>
      <description>&lt;P&gt;As I know .NET isn't C++, but C#&lt;/P&gt;&lt;P&gt;Programming is more a hoby for me. But if here are a need I use it for work too. Now I have made several commands using AutoLISP, but as I am more interested in C++ I have decided to translate them to C++. But all my experence in C++ are on Linux.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had found a web page where was writen how to compile a 64bit applications on Visual C++ 2010 too, But it used hacks to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2013 16:59:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/error-lnk2038-mismatch-detected/m-p/4371575#M13356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-18T16:59:14Z</dc:date>
    </item>
  </channel>
</rss>

