几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】problem converting from 1.12 - 1.13 (http://www.dimcax.com/hust/showthread.php?t=18008)

yang686526 2009-05-06 10:38 PM

【转帖】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".


所有的时间均为北京时间。 现在的时间是 10:59 PM.