1.13 hostapp / systemservices problems
1.13 hostapp / systemservices problems
i've updated to 1.13 and have been unable to make my app build with it (vc2003md debug only, release seems to be fine). i'm getting link errors with my derived oddbsystemservices and oddbhostapp classes. here are the errors:
creating library dwgd.lib and object dwgd.exp
appservices.obj : error lnk2001: unresolved external symbol "public: virtual class odstring __thiscall oddbhostappservices::filedialog(int,char const *,char const *,char const *,char const *)" (?filedialog@oddbhostappservices@@uae?avodstring@@ hpbd000@z)
dwg.obj : error lnk2001: unresolved external symbol "public: virtual class odstring __thiscall oddbhostappservices::filedialog(int,char const *,char const *,char const *,char const *)" (?filedialog@oddbhostappservices@@uae?avodstring@@ hpbd000@z)
appservices.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall oddbhostappservices::setr12saveaccuracy(short)" (?setr12saveaccuracy@oddbhostappservices@@uaexf@z)
dwg.obj : error lnk2019: unresolved external symbol "public: virtual void __thiscall oddbhostappservices::setr12saveaccuracy(short)" (?setr12saveaccuracy@oddbhostappservices@@uaexf@z) referenced in function "public: void __thiscall dwgpriv::acadrgb(int,struct color *)" (?acadrgb@dwgpriv@@qaexhpaucolor@@@z)
appservices.obj : error lnk2001: unresolved external symbol "public: virtual short __thiscall oddbhostappservices::getr12saveaccuracy(void)const " (?getr12saveaccuracy@oddbhostappservices@@ubefxz)
dwg.obj : error lnk2001: unresolved external symbol "public: virtual short __thiscall oddbhostappservices::getr12saveaccuracy(void)const " (?getr12saveaccuracy@oddbhostappservices@@ubefxz)
appservices.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall oddbhostappservices::setr12savedeviation(double)" (?setr12savedeviation@oddbhostappservices@@uaexn@z )
dwg.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall oddbhostappservices::setr12savedeviation(double)" (?setr12savedeviation@oddbhostappservices@@uaexn@z )
appservices.obj : error lnk2001: unresolved external symbol "public: virtual double __thiscall oddbhostappservices::getr12savedeviation(void)cons t " (?getr12savedeviation@oddbhostappservices@@ubenxz)
dwg.obj : error lnk2019: unresolved external symbol "public: virtual double __thiscall oddbhostappservices::getr12savedeviation(void)cons t " (?getr12savedeviation@oddbhostappservices@@ubenxz) referenced in function "public: void __thiscall dwgpriv::acadrgb(int,struct color *)" (?acadrgb@dwgpriv@@qaexhpaucolor@@@z)
appservices.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall oddbhostappservices::setpreview_height(unsigned long)" (?setpreview_height@oddbhostappservices@@uaexk@z)
dwg.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall oddbhostappservices::setpreview_height(unsigned long)" (?setpreview_height@oddbhostappservices@@uaexk@z)
appservices.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall oddbhostappservices::getpreview_height(void)const " (?getpreview_height@oddbhostappservices@@ubekxz)
dwg.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall oddbhostappservices::getpreview_height(void)const " (?getpreview_height@oddbhostappservices@@ubekxz)
appservices.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall oddbhostappservices::setpreview_width(unsigned long)" (?setpreview_width@oddbhostappservices@@uaexk@z)
dwg.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall oddbhostappservices::setpreview_width(unsigned long)" (?setpreview_width@oddbhostappservices@@uaexk@z)
appservices.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall oddbhostappservices::getpreview_width(void)const " (?getpreview_width@oddbhostappservices@@ubekxz)
dwg.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall oddbhostappservices::getpreview_width(void)const " (?getpreview_width@oddbhostappservices@@ubekxz)
appservices.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall oddbhostappservices::setproxyshow(enum oddb:

roxyimage)" (?setproxyshow@oddbhostappservices@@uaexw4proxyima ge@oddb@@@z)
dwg.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall oddbhostappservices::setproxyshow(enum oddb:

roxyimage)" (?setproxyshow@oddbhostappservices@@uaexw4proxyima ge@oddb@@@z)
appservices.obj : error lnk2001: unresolved external symbol "public: virtual enum oddb:

roxyimage __thiscall oddbhostappservices::getproxyshow(void)const " (?getproxyshow@oddbhostappservices@@ube?aw4proxyim age@oddb@@xz)
dwg.obj : error lnk2001: unresolved external symbol "public: virtual enum oddb:

roxyimage __thiscall oddbhostappservices::getproxyshow(void)const " (?getproxyshow@oddbhostappservices@@ube?aw4proxyim age@oddb@@xz)
appservices.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall oddbhostappservices::setfiledia(bool)" (?setfiledia@oddbhostappservices@@uaex_n@z)
dwg.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall oddbhostappservices::setfiledia(bool)" (?setfiledia@oddbhostappservices@@uaex_n@z)
appservices.obj : error lnk2001: unresolved external symbol "public: virtual bool __thiscall oddbhostappservices::getfiledia(void)const " (?getfiledia@oddbhostappservices@@ube_nxz)
dwg.obj : error lnk2019: unresolved external symbol "public: virtual bool __thiscall oddbhostappservices::getfiledia(void)const " (?getfiledia@oddbhostappservices@@ube_nxz) referenced in function "public: int __thiscall dwgpriv::rgbacad(struct color const &)" (?rgbacad@dwgpriv@@qaehabucolor@@@z)
dwg.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall odrxsystemservices::warning(class odstring const &)" (?warning@odrxsystemservices@@uaexabvodstring@@@z)
dwg.obj : error lnk2001: unresolved external symbol "public: virtual class odstring __thiscall odrxsystemservices::findmodule(char const *)" (?findmodule@odrxsystemservices@@uae?avodstring@@p bd@z)
dwg.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall odrxsystemservices::unloadmodule(class odrxmodule *)" (?unloadmodule@odrxsystemservices@@uaexpavodrxmodu le@@@z)
dwg.obj : error lnk2001: unresolved external symbol "public: virtual class odrxmodule * __thiscall odrxsystemservices::loadmodule(char const *,bool)" (?loadmodule@odrxsystemservices@@uaepavodrxmodule@ @pbd_n@z)
dwg.obj : error lnk2001: unresolved external symbol "public: virtual class odstring __thiscall odrxsystemservices::createguid(void)" (?createguid@odrxsystemservices@@uae?avodstring@@x z)
dwg.obj : error lnk2001: unresolved external symbol "public: virtual class odstring __cdecl odrxsystemservices::formatmsg(unsigned int,...)" (?formatmsg@odrxsystemservices@@uaa?avodstring@@iz z)
dwg.obj : error lnk2019: unresolved external symbol "public: __thiscall oddbsystemservices:

ddbsystemservices(void)" (??0oddbsystemservices@@qae@xz) referenced in function "public: __thiscall dwgsysservices:wgsysservices(void)" (??0dwgsysservices@@qae@xz)
dwg.obj : error lnk2019: unresolved external symbol "public: virtual __thiscall oddbsystemservices::~oddbsystemservices(void)" (??1oddbsystemservices@@uae@xz) referenced in function "public: virtual __thiscall dwgsysservices::~dwgsysservices(void)" (??1dwgsysservices@@uae@xz)
dwgd.dll : fatal error lnk1120: 21 unresolved externals
i've looked at the example services classes and can't see that they're doing anything differently. what .lib are these two classes supposed to be stored in, or is there some macro i'm missing?
last edited by broncofan; 2nd june 2005 at 03:10 pmfff">.
first of all i'd recommend to delete ncb file and do clean/rebuild
vladimir
probably you have different list of libraries to link with in debug and release configurations.
undefined symbols you have are in *_db*.lib (* depends on library set you use).
sergey slezkin
you're right. i (stupidly) didn't check the dates of the debug libraries i was using. sorry to waste your time.