高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|