liyanchao1 发表于 2004-8-13 10:22:00

请大虾帮忙看一下,我的程序问题出在哪?

我在编译ARX“椭圆”示例程序时,总是提示如下:请大虾帮忙看一下程序有什磨问题?多谢各位大峡!


--------------------Configuration: 椭圆 - Win32 Debug--------------------<BR>Compiling...<BR>椭圆.cpp<BR>d:\documents and settings\administrator\my documents\综合文件1\椭圆.cpp(33) : fatal error C1083: Cannot open include file: 'dbjig.h': No such file or directory<BR>Error executing cl.exe.


椭圆.obj - 1 error(s), 0 warning(s)


<BR>

easypower 发表于 2004-8-13 15:55:00

设置inc路径

pckite 发表于 2004-8-18 08:15:00

Cannot open include file: 'dbjig.h': No such file or directory<BR>Error executing cl.exe.


其中文意思就是:无法打开dbjig.h文件:没有这个文件或路径。。。


你要设置头文件'dbjig.h'所在的路径才行,在INC配置项中有的。

xiaobawang 发表于 2004-8-19 17:12:00

在vc6的project的setting中

liyanchao1 发表于 2004-8-27 11:02:00

我按照各位大虾的建议进行了设置,但是编译“*.ARX”文件是仍然出错,请各位大虾在看一下,问题出在哪?


--------------------Configuration: 椭圆 - Win32 Debug--------------------<BR>Compiling...<BR>tuoyuan.cpp<BR>D:\Documents and Settings\Administrator\My Documents\综合文件1\tuoyuan.cpp(239) : error C2065: 'RTSHORT' : undeclared identifier<BR>Error executing cl.exe.


tuoyuan.obj - 1 error(s), 0 warning(s)

easypower 发表于 2004-8-27 11:15:00

please include "stdAfx.h"

liyanchao1 发表于 2004-8-28 10:16:00

我按照各位大虾的建议进行了设置,但是编译“椭圆. CPP”时,没有错误和警告,但是在构件“椭圆.ARX”时,显示如下错误,请各位大虾在看一下,问题出在哪?


--------------------Configuration: 椭圆 - Win32 Debug--------------------<BR>Compiling...<BR>Skipping... (no relevant changes detected)<BR>椭圆.cpp


椭圆.obj - 0 error(s), 0 warning(s)<BR>--------------------Configuration: 椭圆 - Win32 Debug--------------------<BR>Linking...<BR>LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library<BR>椭圆.obj : error LNK2001: unresolved external symbol "public: virtual class AcRxClass * __thiscall AcEdJig::isA(void)const " (<A href="mailto:?isA@AcEdJig@@UBEPAVAcRxClass@@XZ" target="_blank" >?isA@AcEdJig@@UBEPAVAcRxClass@@XZ</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall AcEdJig::~AcEdJig(void)" (<A href="mailto:??1AcEdJig@@UAE@XZ" target="_blank" >??1AcEdJig@@UAE@XZ</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall AcGeVector3d::AcGeVector3d(class AcGeVector3d const &amp;)" (<A href="mailto:__imp_??0AcGeVector3d@@QAE@ABV0@@Z" target="_blank" >__imp_??0AcGeVector3d@@QAE@ABV0@@Z</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall AcGeVector3d::AcGeVector3d(void)" (<A href="mailto:__imp_??0AcGeVector3d@@QAE@XZ" target="_blank" >__imp_??0AcGeVector3d@@QAE@XZ</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall AcGePoint3d::AcGePoint3d(void)" (<A href="mailto:__imp_??0AcGePoint3d@@QAE@XZ" target="_blank" >__imp_??0AcGePoint3d@@QAE@XZ</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall AcGePoint3d::AcGePoint3d(class AcGePoint3d const &amp;)" (<A href="mailto:__imp_??0AcGePoint3d@@QAE@ABV0@@Z" target="_blank" >__imp_??0AcGePoint3d@@QAE@ABV0@@Z</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "public: __thiscall AcEdJig::AcEdJig(void)" (<A href="mailto:??0AcEdJig@@QAE@XZ" target="_blank" >??0AcEdJig@@QAE@XZ</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "public: static void __cdecl AcDbObject::operator delete(void *)" (<A href="mailto:??3AcDbObject@@SAXPAX@Z" target="_blank" >??3AcDbObject@@SAXPAX@Z</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "public: class AcDbObjectId       __thiscall AcEdJig::append(void)" (<A href="mailto:?append@AcEdJig@@QAE?AVAcDbObjectId@@XZ" target="_blank" >?append@AcEdJig@@QAE?AVAcDbObjectId@@XZ</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "public: enum AcEdJig::DragStatus       __thiscall AcEdJig::drag(void)" (<A href="mailto:?drag@AcEdJig@@QAE?AW4DragStatus@1@XZ" target="_blank" >?drag@AcEdJig@@QAE?AW4DragStatus@1@XZ</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "public: void __cdecl AcEdJig::setDispPrompt(char const *,...)" (<A href="mailto:?setDispPrompt@AcEdJig@@QAAXPBDZZ" target="_blank" >?setDispPrompt@AcEdJig@@QAAXPBDZZ</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "public: __thiscall AcDbEllipse::AcDbEllipse(void)" (<A href="mailto:??0AcDbEllipse@@QAE@XZ" target="_blank" >??0AcDbEllipse@@QAE@XZ</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "public: static void * __cdecl AcDbObject::operator new(unsigned int)" (<A href="mailto:??2AcDbObject@@SAPAXI@Z" target="_blank" >??2AcDbObject@@SAPAXI@Z</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "public: enum AcEdJig::DragStatus       __thiscall AcEdJig::acquireDist(double &amp;,class AcGePoint3d const &amp;)" (<A href="mailto:?acquireDist@AcEdJig@@QAE?AW4DragStatus@1@AANABVAcGePoint3d@@@Z" target="_blank" >?acquireDist@AcEdJig@@QAE?AW4DragStatus@1@AANABVAcGePoint3d@@@Z</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall AcGePoint3d::operator!=(class AcGePoint3d const &amp;)const " (<A href="mailto:__imp_??9AcGePoint3d@@QBEHABV0@@Z" target="_blank" >__imp_??9AcGePoint3d@@QBEHABV0@@Z</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "public: enum AcEdJig::DragStatus       __thiscall AcEdJig::acquirePoint(class AcGePoint3d &amp;,class AcGePoint3d const &amp;)" (<A href="mailto:?acquirePoint@AcEdJig@@QAE?AW4DragStatus@1@AAVAcGePoint3d@@ABV3@@Z" target="_blank" >?acquirePoint@AcEdJig@@QAE?AW4DragStatus@1@AAVAcGePoint3d@@ABV3@@Z</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "public: void __thiscall AcEdJig::setUserInputControls(enum AcEdJig::UserInputControls)" (<A href="mailto:?setUserInputControls@AcEdJig@@QAEXW4UserInputControls@1@@Z" target="_blank" >?setUserInputControls@AcEdJig@@QAEXW4UserInputControls@1@@Z</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "public: enum Acad::ErrorStatus       __thiscall AcDbEllipse::set(class AcGePoint3d const &amp;,class AcGeVector3d const &amp;,class AcGeVector3d const &amp;,double,double,double)" (<A href="mailto:?set@AcDbEllipse@@QAE?AW4ErrorS" target="_blank" >?set@AcDbEllipse@@QAE?AW4ErrorS</A><BR><A href="mailto:tatus@Acad@@ABVAcGePoint3d@@ABVAcGeVector3d@@1NNN@Z" target="_blank" >tatus@Acad@@ABVAcGePoint3d@@ABVAcGeVector3d@@1NNN@Z</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: double __thiscall AcGeVector3d::length(void)const " (<A href="mailto:__imp_?length@AcGeVector3d@@QBENXZ" target="_blank" >__imp_?length@AcGeVector3d@@QBENXZ</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class AcGeVector3d       __thiscall AcGePoint3d::operator-(class AcGePoint3d const &amp;)const " (<A href="mailto:__imp_??GAcGePoint3d@@QBE?AVAcGeVector3d@@ABV0@@Z" target="_blank" >__imp_??GAcGePoint3d@@QBE?AVAcGeVector3d@@ABV0@@Z</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class AcGeVector3d &amp; __thiscall AcGeVector3d::normalize(class AcGeTol const &amp;)" (<A href="mailto:__imp_?normalize@AcGeVector3d@@QAEAAV1@ABVAcGeTol@@@Z" target="_blank" >__imp_?normalize@AcGeVector3d@@QAEAAV1@ABVAcGeTol@@@Z</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class AcGeTol       AcGeContext::gTol" (<A href="mailto:__imp_?gTol@AcGeContext@@2VAcGeTol@@A" target="_blank" >__imp_?gTol@AcGeContext@@2VAcGeTol@@A</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class AcGeVector3d       __thiscall AcGeVector3d::crossProduct(class AcGeVector3d const &amp;)const " (<A href="mailto:__imp_?crossProduct@AcGeVector3d@@QBE?AV1@ABV1@@Z" target="_blank" >__imp_?crossProduct@AcGeVector3d@@QBE?AV1@ABV1@@Z</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "public: class AcGeVector3d       __thiscall AcDbDatabase::ucsydir(void)const " (<A href="mailto:?ucsydir@AcDbDatabase@@QBE?AVAcGeVector3d@@XZ" target="_blank" >?ucsydir@AcDbDatabase@@QBE?AVAcGeVector3d@@XZ</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol "public: class AcGeVector3d       __thiscall AcDbDatabase::ucsxdir(void)const " (<A href="mailto:?ucsxdir@AcDbDatabase@@QBE?AVAcGeVector3d@@XZ" target="_blank" >?ucsxdir@AcDbDatabase@@QBE?AVAcGeVector3d@@XZ</A>)<BR>椭圆.obj : error LNK2001: unresolved external symbol _acedTrans<BR>椭圆.obj : error LNK2001: unresolved external symbol _acedGetPoint<BR>LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main<BR>Debug/椭圆.arx : fatal error LNK1120: 28 unresolved externals<BR>Error executing link.exe.


椭圆.arx - 29 error(s), 1 warning(s)<BR>

zfbj 发表于 2004-8-28 11:19:00

你把代码传上来吧,LNK2001有很多种原因。

easypower 发表于 2004-8-28 13:31:00

xiaobawang发表于2004-8-19 17:12:00static/image/common/back.gif在vc6的project的setting中



please set lib path also

liyanchao1 发表于 2004-8-30 09:47:00

我上传代码时为什磨总是提示:“Microsoft VBScript 运行时错误<FONT size=2> <FONT face=宋体>错误 '800a01b6'”。</FONT></FONT>
页: [1] 2
查看完整版本: 请大虾帮忙看一下,我的程序问题出在哪?