guoyaonan 发表于 2006-4-24 00:11:00

arx编译和连接的问题,大家讨论

<P>我是个初学者,请教个问题</P>
<P>我要做一个文件的打开操作,作成的ARX</P>
<P>编译的时候出错</P>
<P>Compiling...<BR>open.cpp<BR>e:\wd\open\open.cpp(2) : fatal error C1083: Cannot open precompiled header file: 'Debug/open.pch': No such file or directory<BR>Error executing cl.exe.</P>
<P>然后built通过</P>
<P>Compiling resources...<BR>Compiling...<BR>StdAfx.cpp<BR>Compiling...<BR>DocData.cpp<BR>open.cpp<BR>rxdebug.cpp<BR>Generating Code...<BR>Linking...<BR>&nbsp;&nbsp; Creating library Debug/2open.lib and object Debug/2open.exp</P>
<P>2open.arx - 0 error(s), 0 warning(s)</P>
<P>再编译</P>
<P>Compiling...<BR>Skipping... (no relevant changes detected)<BR>open.cpp</P>
<P>open.obj - 0 error(s), 0 warning(s)</P>
<P>就没有错误了,</P>
<P>但是生成的.arx文件不能加载</P>
<P>2open.arx is incompatible with this version of AutoCAD.<BR>AcRxDynamicLinker failed to load 'E:\WD\open\Debug\2open.arx'<BR>D:\Program Files\AutoCAD 2004\acad.exeUnable to load 2open.arx file.</P>
<P>在哪里出错了呢,我很困惑</P>

alfalfa 发表于 2006-4-24 15:17:00

2open.arx is incompatible with this version of AutoCAD.<BR>ARX的版本和你用的CAD版本不相符. AutoCAD 2004 只能用ObjectArx SDK for 2004
页: [1]
查看完整版本: arx编译和连接的问题,大家讨论