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

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

我在编译ARX“椭圆”示例程序时,总是提示如下:请大虾帮忙看一下程序有什磨问题?多谢各位大峡!
--------------------Configuration: 椭圆 - Win32 Debug--------------------
Compiling...
椭圆.cpp
d:\documents and settings\administrator\my documents\综合文件1\椭圆.cpp(33) : fatal error C1083: Cannot open include file: 'dbjig.h': No such file or directory
Error executing cl.exe.
椭圆.obj - 1 error(s), 0 warning(s)

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
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--------------------
Compiling...
tuoyuan.cpp
D:\Documents and Settings\Administrator\My Documents\综合文件1\tuoyuan.cpp(239) : error C2065: 'RTSHORT' : undeclared identifier
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--------------------
Compiling...
Skipping... (no relevant changes detected)
椭圆.cpp
椭圆.obj - 0 error(s), 0 warning(s)
--------------------Configuration: 椭圆 - Win32 Debug--------------------
Linking...
LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
椭圆.obj : error LNK2001: unresolved external symbol "public: virtual class AcRxClass * __thiscall AcEdJig::isA(void)const " (?isA@AcEdJig@@UBEPAVAcRxClass@@XZ)
椭圆.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall AcEdJig::~AcEdJig(void)" (??1AcEdJig@@UAE@XZ)
椭圆.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall AcGeVector3d::AcGeVector3d(class AcGeVector3d const &)" (__imp_??0AcGeVector3d@@QAE@ABV0@@Z)
椭圆.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall AcGeVector3d::AcGeVector3d(void)" (__imp_??0AcGeVector3d@@QAE@XZ)
椭圆.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall AcGePoint3d::AcGePoint3d(void)" (__imp_??0AcGePoint3d@@QAE@XZ)
椭圆.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall AcGePoint3d::AcGePoint3d(class AcGePoint3d const &)" (__imp_??0AcGePoint3d@@QAE@ABV0@@Z)
椭圆.obj : error LNK2001: unresolved external symbol "public: __thiscall AcEdJig::AcEdJig(void)" (??0AcEdJig@@QAE@XZ)
椭圆.obj : error LNK2001: unresolved external symbol "public: static void __cdecl AcDbObject:perator delete(void *)" (??3AcDbObject@@SAXPAX@Z)
椭圆.obj : error LNK2001: unresolved external symbol "public: class AcDbObjectId       __thiscall AcEdJig::append(void)" (?append@AcEdJig@@QAE?AVAcDbObjectId@@XZ)
椭圆.obj : error LNK2001: unresolved external symbol "public: enum AcEdJig:ragStatus       __thiscall AcEdJig::drag(void)" (?drag@AcEdJig@@QAE?AW4DragStatus@1@XZ)
椭圆.obj : error LNK2001: unresolved external symbol "public: void __cdecl AcEdJig::setDispPrompt(char const *,...)" (?setDispPrompt@AcEdJig@@QAAXPBDZZ)
椭圆.obj : error LNK2001: unresolved external symbol "public: __thiscall AcDbEllipse::AcDbEllipse(void)" (??0AcDbEllipse@@QAE@XZ)
椭圆.obj : error LNK2001: unresolved external symbol "public: static void * __cdecl AcDbObject:perator new(unsigned int)" (??2AcDbObject@@SAPAXI@Z)
椭圆.obj : error LNK2001: unresolved external symbol "public: enum AcEdJig:ragStatus       __thiscall AcEdJig::acquireDist(double &,class AcGePoint3d const &)" (?acquireDist@AcEdJig@@QAE?AW4DragStatus@1@AANABVAcGePoint3d@@@Z)
椭圆.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall AcGePoint3d:perator!=(class AcGePoint3d const &)const " (__imp_??9AcGePoint3d@@QBEHABV0@@Z)
椭圆.obj : error LNK2001: unresolved external symbol "public: enum AcEdJig:ragStatus       __thiscall AcEdJig::acquirePoint(class AcGePoint3d &,class AcGePoint3d const &)" (?acquirePoint@AcEdJig@@QAE?AW4DragStatus@1@AAVAcGePoint3d@@ABV3@@Z)
椭圆.obj : error LNK2001: unresolved external symbol "public: void __thiscall AcEdJig::setUserInputControls(enum AcEdJig::UserInputControls)" (?setUserInputControls@AcEdJig@@QAEXW4UserInputControls@1@@Z)
椭圆.obj : error LNK2001: unresolved external symbol "public: enum Acad::ErrorStatus       __thiscall AcDbEllipse::set(class AcGePoint3d const &,class AcGeVector3d const &,class AcGeVector3d const &,double,double,double)" (?set@AcDbEllipse@@QAE?AW4ErrorS
tatus@Acad@@ABVAcGePoint3d@@ABVAcGeVector3d@@1NNN@Z)
椭圆.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: double __thiscall AcGeVector3d::length(void)const " (__imp_?length@AcGeVector3d@@QBENXZ)
椭圆.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class AcGeVector3d       __thiscall AcGePoint3d:perator-(class AcGePoint3d const &)const " (__imp_??GAcGePoint3d@@QBE?AVAcGeVector3d@@ABV0@@Z)
椭圆.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class AcGeVector3d & __thiscall AcGeVector3d::normalize(class AcGeTol const &)" (__imp_?normalize@AcGeVector3d@@QAEAAV1@ABVAcGeTol@@@Z)
椭圆.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class AcGeTol       AcGeContext::gTol" (__imp_?gTol@AcGeContext@@2VAcGeTol@@A)
椭圆.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class AcGeVector3d       __thiscall AcGeVector3d::crossProduct(class AcGeVector3d const &)const " (__imp_?crossProduct@AcGeVector3d@@QBE?AV1@ABV1@@Z)
椭圆.obj : error LNK2001: unresolved external symbol "public: class AcGeVector3d       __thiscall AcDbDatabase::ucsydir(void)const " (?ucsydir@AcDbDatabase@@QBE?AVAcGeVector3d@@XZ)
椭圆.obj : error LNK2001: unresolved external symbol "public: class AcGeVector3d       __thiscall AcDbDatabase::ucsxdir(void)const " (?ucsxdir@AcDbDatabase@@QBE?AVAcGeVector3d@@XZ)
椭圆.obj : error LNK2001: unresolved external symbol _acedTrans
椭圆.obj : error LNK2001: unresolved external symbol _acedGetPoint
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/椭圆.arx : fatal error LNK1120: 28 unresolved externals
Error executing link.exe.
椭圆.arx - 29 error(s), 1 warning(s)

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

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

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


please set lib path also

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

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