查看单个帖子
旧 2009-05-04, 03:50 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】adt static link settings

adt static link settings
adt static link settings
are there instructions somewhere that describe the necessary preprocessor, compiler, and linker settings to statically link adtdirect 0.51 under msvc2003?
the creationtest example uses dlls so i can't be sure what cpp settings are necessary for static libs.
for those interested, i'm failing to link on the following:
database.obj : warning lnk4049: locally defined symbol ?kidentity@odgematrix3d@@2v1@b (public: static class odgematrix3d const odgematrix3d::kidentity) imported
database.obj : error lnk2001: unresolved external symbol "public: void __thiscall oddbdatabase::readfile(char const *,bool,enum oda::filesharemode,class odwstring const &,bool)" (?readfile@oddbdatabase@@$$fqaexpbd_nw4filesharemo de@oda@@abvodwstring@@1@z)
database.obj : error lnk2001: unresolved external symbol "public: static class odsmartptr<class odgspaperlayouthelper> __cdecl odgspaperlayouthelper::cast(class odrxobject const *)" (?cast@odgspaperlayouthelper@@$$fsa?av?$odsmartptr @vodgspaperlayouthelper@@@@pbvodrxobject@@@z)
globals.obj : error lnk2019: unresolved external symbol "class odstring __cdecl modulefilename(void *)" (?modulefilename@@ya?avodstring@@pax@z) referenced in function "public: virtual class odstring __thiscall odrxdynamicmodule<class aecbase>::modulefilename(void)const " (?modulefilename@?$odrxdynamicmodule@vaecbase@@@@u be?avodstring@@xz)
globals.obj : error lnk2019: unresolved external symbol "protected: static void __cdecl odrxobjecterator delete[](void *)" (??_vodrxobject@@kaxpax@z) referenced in function "public: virtual void * __thiscall odrxdynamicmodule<class aecbase>::`vector deleting destructor'(unsigned int)" (??_e?$odrxdynamicmodule@vaecbase@@@@uaepaxi@z)
quote:
originally posted by mmacbeth
are there instructions somewhere that describe the necessary preprocessor, compiler, and linker settings to statically link adtdirect 0.51 under msvc2003?
the creationtest example uses dlls so i can't be sure what cpp settings are necessary for static libs.
for those interested, i'm failing to link on the following:
database.obj : warning lnk4049: locally defined symbol ?kidentity@odgematrix3d@@2v1@b (public: static class odgematrix3d const odgematrix3d::kidentity) imported
database.obj : error lnk2001: unresolved external symbol "public: void __thiscall oddbdatabase::readfile(char const *,bool,enum oda::filesharemode,class odwstring const &,bool)" (?readfile@oddbdatabase@@$$fqaexpbd_nw4filesharemo de@oda@@abvodwstring@@1@z)
database.obj : error lnk2001: unresolved external symbol "public: static class odsmartptr<class odgspaperlayouthelper> __cdecl odgspaperlayouthelper::cast(class odrxobject const *)" (?cast@odgspaperlayouthelper@@$$fsa?av?$odsmartptr @vodgspaperlayouthelper@@@@pbvodrxobject@@@z)
globals.obj : error lnk2019: unresolved external symbol "class odstring __cdecl modulefilename(void *)" (?modulefilename@@ya?avodstring@@pax@z) referenced in function "public: virtual class odstring __thiscall odrxdynamicmodule<class aecbase>::modulefilename(void)const " (?modulefilename@?$odrxdynamicmodule@vaecbase@@@@u be?avodstring@@xz)
globals.obj : error lnk2019: unresolved external symbol "protected: static void __cdecl odrxobjecterator delete[](void *)" (??_vodrxobject@@kaxpax@z) referenced in function "public: virtual void * __thiscall odrxdynamicmodule<class aecbase>::`vector deleting destructor'(unsigned int)" (??_e?$odrxdynamicmodule@vaecbase@@@@uaepaxi@z)
hello,
version 0.5.1 adtdirect was supplied only in dll variant.
since next version (0.6) static build will be also available.
it will be released right after dd1.13.
vladimir alekseev
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)