几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】minimun set of core libraries (http://www.dimcax.com/hust/showthread.php?t=17208)

yang686526 2009-05-06 05:49 PM

【转帖】minimun set of core libraries
 
minimun set of core libraries
minimun set of core libraries
hi,
the documentation says the core libraries include dd_root, dd_ge, dd_gi, and dd_db. however, when i tried to link these four static libraries together with dd_alloc into my app, i got link errors such as
error lnk2019: unresolved external symbol "class odrxmodule * __stdcall odrxcreatemoduleobject_for_odgsmoduleobject(class odstring const &)" (?odrxcreatemoduleobject_for_odgsmoduleobject@@ygp avodrxmodule@@abvodstring@@@z) referenced in function "class odrxmodule * __stdcall odrxloadgsmoduleinternal(void)" (?odrxloadgsmoduleinternal@@ygpavodrxmodule@@xz)
in dd_db, so i had to link in dd_gs and which in turns requires dd_spatialindex. if you take a look at database\ddsset.cpp (which builds into dd_db), you'll see code referring to gs module such as
m_pgsmodule = :drxloadgsmoduleinternal();
so what's the minimun set of core libraries? my app wants to be able to read dwg/dxf files.
if you were using dynamic libraries, then you would not need gs and spatial index to read/write dwg. for static build, there is no way to avoid this dependency.
you may also need modeler library if you are intending to do anything with 3dsolids (like converting them to other versions)
vladimir


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