![]() |
【转帖】dwgdirect and opendwg in the same dll
dwgdirect and opendwg in the same dll
dwgdirect and opendwg in the same dll has anyone gotten both toolkit libraries to reside harmoniously together in the same dll? if so what do i need to do? i'm getting these errors: code: dd_vc6mt_gi.lib(gibasevectorizer.obj) : error lnk2005: _bpaddnewvertex already defined in adv6nt.lib(adbrkpg.obj) dd_vc6mt_gi.lib(gibasevectorizer.obj) : error lnk2005: _bpcreatecontour already defined in adv6nt.lib(adbrkpg.obj) dd_vc6mt_gi.lib(gibasevectorizer.obj) : error lnk2005: _bpdisposecontour already defined in adv6nt.lib(adbrkpg.obj) dd_vc6mt_gi.lib(gibasevectorizer.obj) : error lnk2005: _bpupdateverticescount already defined in adv6nt.lib(adbrkpg.obj) dd_vc6mt_gi.lib(gibasevectorizer.obj) : error lnk2005: _bpisincomming already defined in adv6nt.lib(adbrkpg.obj) dd_vc6mt_gi.lib(gibasevectorizer.obj) : error lnk2005: _bpinverseway already defined in adv6nt.lib(adbrkpg.obj) dd_vc6mt_gi.lib(gibasevectorizer.obj) : error lnk2005: _bpbreakcontour already defined in adv6nt.lib(adbrkpg.obj) dd_vc6mt_gi.lib(gibasevectorizer.obj) : error lnk2005: _bpconcatcontours already defined in adv6nt.lib(adbrkpg.obj) dd_vc6mt_gi.lib(gibasevectorizer.obj) : error lnk2005: _bpnormalizepolygon already defined in adv6nt.lib(adbrkpg.obj) dd_vc6mt_gi.lib(gibasevectorizer.obj) : error lnk2005: _bpsplitpolygon already defined in adv6nt.lib(adbrkpg.obj) dd_vc6mt_gi.lib(gibasevectorizer.obj) : error lnk2005: _bpbreaktotrangles already defined in adv6nt.lib(adbrkpg.obj) dd_vc6mt_gi.lib(gibasevectorizer.obj) : error lnk2005: _bpcopycontour already defined in adv6nt.lib(adbrkpg.obj) dd_vc6mt_gi.lib(gibasevectorizer.obj) : error lnk2005: _bpbreakpolygon already defined in adv6nt.lib(adbrkpg.obj) i've done a search on past posts but i haven't found the answer i seek.. i would greatly appreciate any help. gp so no one here has been able to get the two to play together nicely? please.. any tidbits of information will help tremendously. i'm using the mt libraries. did you try to link with /force:multiple option? quote: originally posted by wvk did you try to link with /force:multiple option? yes i did try that but it resulted in a slew of other linkage errors.. thanks for the reply though.. i managed to fix the issue by doing three things. 1. switched the mt libraries with the md libs. 2. un define _toolkit_in_dll_. 3. added \examples\exservices cpp and h files to the project (mfc alert) turn off pch creation (pre compiled headers) for the cpp files otherwise you wind up with afx errors. you can't put both dwgdirect and the old c libraries in the same dll. |
所有的时间均为北京时间。 现在的时间是 05:39 AM. |