查看单个帖子
旧 2009-05-06, 05:49 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)