高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】linking errors 9lnk20050, vc6
linking errors (lnk2005), vc6
linking errors (lnk2005), vc6
i'm trying to add dwgdirect libs to my project (as it is shown in readex example project)
these libs are taken from dd_vc6.zip\lib\vc6md\
everything is ok in debug. in release i get linking errors:
linking...
dd_vc6md_ge.lib(gelinearent3d.obj) : error lnk2005: "public: virtual bool __thiscall odgelinearent3d::iskindof(enum odge::entityid)const "
(?iskindof@odgelinearent3d@@ube_nw4entityid@odge@@ @z) already defined in dd_vc6md_ge.lib(gelinearent3d.obj)
dd_vc6md_ge.lib(gelinearent3d.obj) : error lnk2005: "public: virtual enum odge::entityid __thiscall odgelinearent3d::type(void)const "
(?type@odgelinearent3d@@ube?aw4entityid@odge@@xz) already defined in dd_vc6md_ge.lib(gelinearent3d.obj)
and so on...
i'm using visual studion 6.0, static dwgdirect libs, winxp
how can i resolve this link errors?
p.s i've tried the advises given on this forum, but nothing helped
/force:multiple is not exceptable
can you create a small sample to reproduce the problem, and post it here?
vladimir
quote:
originally posted by wvk
can you create a small sample to reproduce the problem, and post it here?
i'll try...
i think that the problem is in compiler settings. here are my setting for release:
/nologo /g5 /ml /w3 /gr /gx /zi /ob1 ...
and for debug:
/nologo /mdd /w3 /gm /gi /gr /gx /zi /od...
why are you using md libs for debug, and ml for release?
vladimir
sorry, there were incorrect settings. here are correct:
release:
/nologo /g5 /md /w3 /gr /gx /zi /ob1
debug:
/nologo /mdd /w3 /gm /gi /gr /gx /zi /od
well, these setting are almost the same as those used in building dd librraies and examples.
perhaps you can strip your application of private info and send it to support, to look at?
vladimir
quote:
originally posted by wvk
well, these setting are almost the same as those used in building dd librraies and examples.
perhaps you can strip your application of private info and send it to support, to look at?
the problem is solved. thanks to all, it was not a dwgdirect libs problem...
|