明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2622|回复: 3

[求助]objectarx2002编译问题

[复制链接]
发表于 2010-6-11 19:37:00 | 显示全部楼层 |阅读模式

哪位高手看看怎没回事 编译通不过

--------------------Configuration: xcx - Win32 Debug--------------------
Compiling...
StdAfx.cpp
Compiling...
rxdebug.cpp
xcx.cpp
     Compiling STL header files in release mode.
c:\program files\microsoft visual studio\vc98\include\xtree(629) : error C2059: syntax error : '?'
c:\program files\microsoft visual studio\vc98\include\xtree(629) : error C2065: '_Y' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\xtree(629) : error C2275: '_A' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\xtree(629) : error C2143: syntax error : missing ',' before ')'
c:\program files\microsoft visual studio\vc98\include\xtree(631) : error C2951: template declarations are only permitted at global or namespace scope
c:\program files\microsoft visual studio\vc98\include\xtree(632) : error C2976: '_Tree' : too few template arguments
        c:\program files\microsoft visual studio\vc98\include\xtree(602) : see declaration of '_Tree'
c:\program files\microsoft visual studio\vc98\include\xtree(633) : error C2143: syntax error : missing ',' before '<='
c:\program files\microsoft visual studio\vc98\include\xtree(633) : error C2433: 'bool' : 'inline' not permitted on data declarations
c:\program files\microsoft visual studio\vc98\include\xtree(633) : error C2059: syntax error : 'operator <op>'
c:\program files\microsoft visual studio\vc98\include\xtree(635) : error C2143: syntax error : missing ')' before '{'
c:\program files\microsoft visual studio\vc98\include\xtree(635) : error C2059: syntax error : '{'
c:\program files\microsoft visual studio\vc98\include\xtree(635) : error C2143: syntax error : missing ';' before '{'
c:\program files\microsoft visual studio\vc98\include\xtree(635) : error C2447: missing function header (old-style formal list?)
c:\program files\microsoft visual studio\vc98\include\xtree(636) : error C2954: template definitions cannot nest
c:\program files\microsoft visual studio\vc98\include\map(44) : error C2039: 'reference' : is not a member of '_A'
        c:\program files\microsoft visual studio\vc98\include\xtree(632) : see declaration of '_A'
        c:\program files\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(44) : error C2146: syntax error : missing ';' before identifier '_Tref'
        c:\program files\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(44) : error C2501: '_Tref' : missing storage-class or type specifiers
        c:\program files\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(48) : error C2040: 'reference' : ' &' differs in levels of indirection from 'int'
        c:\program files\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(92) : error C2143: syntax error : missing ';' before '['
        c:\program files\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(92) : error C2501: '_Tref' : missing storage-class or type specifiers
        c:\program files\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(44) : fatal error C1004: unexpected end of file found
        e:\刘克伟\xcx\adskdmgr.h(77) : see reference to class template instantiation 'std::map<class AcApDocument *,class CDocData,struct std::less<class AcApDocument *>,class std::allocator<class CDocData> >' being compiled
        e:\刘克伟\xcx\stdarx.h(23) : see reference to class template instantiation 'AsdkDataManager<class CDocData>' being compiled
DocData.cpp
     Compiling STL header files in release mode.
c:\program files\microsoft visual studio\vc98\include\xtree(629) : error C2059: syntax error : '?'
c:\program files\microsoft visual studio\vc98\include\xtree(629) : error C2065: '_Y' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\xtree(629) : error C2275: '_A' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\xtree(629) : error C2143: syntax error : missing ',' before ')'
c:\program files\microsoft visual studio\vc98\include\xtree(631) : error C2951: template declarations are only permitted at global or namespace scope
c:\program files\microsoft visual studio\vc98\include\xtree(632) : error C2976: '_Tree' : too few template arguments
        c:\program files\microsoft visual studio\vc98\include\xtree(602) : see declaration of '_Tree'
c:\program files\microsoft visual studio\vc98\include\xtree(633) : error C2143: syntax error : missing ',' before '<='
c:\program files\microsoft visual studio\vc98\include\xtree(633) : error C2433: 'bool' : 'inline' not permitted on data declarations
c:\program files\microsoft visual studio\vc98\include\xtree(633) : error C2059: syntax error : 'operator <op>'
c:\program files\microsoft visual studio\vc98\include\xtree(635) : error C2143: syntax error : missing ')' before '{'
c:\program files\microsoft visual studio\vc98\include\xtree(635) : error C2059: syntax error : '{'
c:\program files\microsoft visual studio\vc98\include\xtree(635) : error C2143: syntax error : missing ';' before '{'
c:\program files\microsoft visual studio\vc98\include\xtree(635) : error C2447: missing function header (old-style formal list?)
c:\program files\microsoft visual studio\vc98\include\xtree(636) : error C2954: template definitions cannot nest
c:\program files\microsoft visual studio\vc98\include\map(44) : error C2039: 'reference' : is not a member of '_A'
        c:\program files\microsoft visual studio\vc98\include\xtree(632) : see declaration of '_A'
        c:\program files\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(44) : error C2146: syntax error : missing ';' before identifier '_Tref'
        c:\program files\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(44) : error C2501: '_Tref' : missing storage-class or type specifiers
        c:\program files\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(48) : error C2040: 'reference' : ' &' differs in levels of indirection from 'int'
        c:\program files\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(92) : error C2143: syntax error : missing ';' before '['
        c:\program files\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(92) : error C2501: '_Tref' : missing storage-class or type specifiers
        c:\program files\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(44) : fatal error C1004: unexpected end of file found
        e:\刘克伟\xcx\adskdmgr.h(77) : see reference to class template instantiation 'std::map<class AcApDocument *,class CDocData,struct std::less<class AcApDocument *>,class std::allocator<class CDocData> >' being compiled
        e:\刘克伟\xcx\stdarx.h(23) : see reference to class template instantiation 'AsdkDataManager<class CDocData>' being compiled
xcxCommands.cpp
     Compiling STL header files in release mode.
c:\program files\microsoft visual studio\vc98\include\xtree(629) : error C2059: syntax error : '?'
c:\program files\microsoft visual studio\vc98\include\xtree(629) : error C2065: '_Y' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\xtree(629) : error C2275: '_A' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\xtree(629) : error C2143: syntax error : missing ',' before ')'
c:\program files\microsoft visual studio\vc98\include\xtree(631) : error C2951: template declarations are only permitted at global or namespace scope
c:\program files\microsoft visual studio\vc98\include\xtree(632) : error C2976: '_Tree' : too few template arguments
        c:\program files\microsoft visual studio\vc98\include\xtree(602) : see declaration of '_Tree'
c:\program files\microsoft visual studio\vc98\include\xtree(633) : error C2143: syntax error : missing ',' before '<='
c:\program files\microsoft visual studio\vc98\include\xtree(633) : error C2433: 'bool' : 'inline' not permitted on data declarations
c:\program files\microsoft visual studio\vc98\include\xtree(633) : error C2059: syntax error : 'operator <op>'
c:\program files\microsoft visual studio\vc98\include\xtree(635) : error C2143: syntax error : missing ')' before '{'
c:\program files\microsoft visual studio\vc98\include\xtree(635) : error C2059: syntax error : '{'
c:\program files\microsoft visual studio\vc98\include\xtree(635) : error C2143: syntax error : missing ';' before '{'
c:\program files\microsoft visual studio\vc98\include\xtree(635) : error C2447: missing function header (old-style formal list?)
c:\program files\microsoft visual studio\vc98\include\xtree(636) : error C2954: template definitions cannot nest
c:\program files\microsoft visual studio\vc98\include\map(44) : error C2039: 'reference' : is not a member of '_A'
        c:\program files\microsoft visual studio\vc98\include\xtree(632) : see declaration of '_A'
        c:\program files\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(44) : error C2146: syntax error : missing ';' before identifier '_Tref'
        c:\program files\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(44) : error C2501: '_Tref' : missing storage-class or type specifiers
        c:\program files\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(48) : error C2040: 'reference' : ' &' differs in levels of indirection from 'int'
        c:\program files\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(92) : error C2143: syntax error : missing ';' before '['
        c:\program files\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(92) : error C2501: '_Tref' : missing storage-class or type specifiers
        c:\program files\microsoft visual studio\vc98\include\map(140) : see reference to class template instantiation 'std::map<_K,_Ty,_Pr,_A>' being compiled
c:\program files\microsoft visual studio\vc98\include\map(44) : fatal error C1004: unexpected end of file found
        e:\刘克伟\xcx\adskdmgr.h(77) : see reference to class template instantiation 'std::map<class AcApDocument *,class CDocData,struct std::less<class AcApDocument *>,class std::allocator<class CDocData> >' being compiled
        e:\刘克伟\xcx\stdarx.h(23) : see reference to class template instantiation 'AsdkDataManager<class CDocData>' being compiled
Generating Code...
Error executing cl.exe.

lktpxcx.arx - 63 error(s), 0 warning(s)

发表于 2010-6-12 09:43:00 | 显示全部楼层
好像是你当前的vc与你打开的工程版本不相符
 楼主| 发表于 2010-6-12 10:01:00 | 显示全部楼层

我用的是vc++6.0英文版 在这台电脑上装过vs2002 2003 2005 用objectarx向导创建工程F5编译产生以下错误

compiling resources...
Compiling...
StdAfx.cpp
e:\刘克伟\xcx1\stdafx.h(20) : fatal error C1083: Cannot open include file: 'acdb.h': No such file or directory
Error executing cl.exe.

lktpxcx1.arx - 1 error(s), 0 warning(s)

手工设置后产生那63个错误。

 楼主| 发表于 2010-6-13 13:09:00 | 显示全部楼层

高手说得对我在其他电脑上重新安装后以上错误无

但是编译时出现打不开 rxapi.lib文件的错误

高手再看看!怎没回事。

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-11-25 12:43 , Processed in 0.186532 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表