查看单个帖子
旧 2009-05-06, 10:38 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】problem converting from 1.12 - 1.13

problem converting from 1.12 -> 1.13
problem converting from 1.12 -> 1.13
hi,
i am converting my code to use 1.13 from 1.12.04 dd_vc6. i got some compile errors about vector and missing file. it seems like in 1.13 the file "'dbextents.h'" are taken out. how to solve this problem?
here is what i include in my code:
#include "odacommon.h"
#include "dbdatabase.h"
#include "tables.h"
#include "entities.h"
#include "objects.h"
#include "dbaudit.h"
#include "dbidmapping.h"
#include "rxobjectimpl.h"
#include "rxdynamicmodule.h"
#include "exsystemservices.h"
#include "exhostappservices.h"
#include "odfilebuf.h"
#include "gs.h"
#include "dbextents.h"
#include "xrefman.h"
here is the compile errors:
../dwgdirectinclude\ge/gevector3d.h(607) : error c2955: 'vector' : use of class template requires template argument list
c:\program files\microsoft visual studio\vc98\include\vector(244) : see declaration of 'vector'
../dwgdirectinclude\ge/gevector3d.h(610) : error c2955: 'vector' : use of class template requires template argument list
c:\program files\microsoft visual studio\vc98\include\vector(244) : see declaration of 'vector'
h:\caddprojects\tregdwg2004\dwgpro.h(34) : fatal error c1083: cannot open include file: 'dbextents.h': no such file or directory
thanks,
alan
dbextents.h has been deprecated. you can use odgeextents3d or odgeextents2d, or if you have questions about this in other contexts, please let us know.
for the vector errors, it appears that we should not be using "vector" as an argument name, as it conflicts with the std::vector template class. we'll change that in our next update. you should be able to either #include <vector> after our headers (if you are explicitly including it), or else just edit gevector3d.h and change "vector" to "vect".
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)