几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】about example odreade (http://www.dimcax.com/hust/showthread.php?t=14980)

yang686526 2009-05-04 03:19 PM

【转帖】about example odreade
 
about example odreadex
about example odreadex
first,i double click dd_nonlibs\projectfiles\win32\msvc6\examples\odrea dex\odreadex.dsp.
second i set the include and lib directories.
then i add every lib's name (which under dd_vc6\lib\vc6md)to project-setting-link-object/library modules.
last i build the odreadex.exe.
the result is as follows:
compiling...
exgirasterimage.cpp
exhostappservices.cpp
exsystemservices.cpp
exundocontroller.cpp
odfilebuf.cpp
dbdumper.cpp
exprotocolextension.cpp
giworlddrawdumper.cpp
odreadex.cpp
generating code...
compiling password support for r18 drawings
linking...
dd_vc6md_db.lib(dbsymboltablerecord.obj) : error lnk2005: "public: bool __thiscall oddbsymboltablerecord::isdependent(void)const " (?isdependent@oddbsymboltablerecord@@qbe_nxz) already defined in dd_db_dll.lib(dd_db.dll)
dd_vc6md_db.lib(dbsymboltablerecord.obj) : error lnk2005: "public: bool __thiscall oddbsymboltablerecord::isresolved(void)const " (?isresolved@oddbsymboltablerecord@@qbe_nxz) already defined in dd_db_dll.lib(dd_db.dll)
dd_vc6md_db.lib(dblayout.obj) : error lnk2005: "public: class odstring __thiscall oddblayout::getlayoutname(void)const " (?getlayoutname@oddblayout@@qbe?avodstring@@xz) already defined in dd_db_dll.lib(dd_db.dll)
dd_vc6md_db.lib(dbdimassoc.obj) : error lnk2005: "public: enum oddbdimassoc::rotatedtype __thiscall oddbdimassoc::rotateddimtype(void)const " (?rotateddimtype@oddbdimassoc@@qbe?aw4rotatedtype@ 1@xz) already defined in dd_db_dll.lib(dd_db.dll)
dd_vc6md_db.lib(dbdimassoc.obj) : error lnk2005: "public: long __thiscall oddbdimassoc::associativityflag(void)const " (?associativityflag@oddbdimassoc@@qbejxz) already defined in dd_db_dll.lib(dd_db.dll)
dd_vc6md_db.lib(dbdimassoc.obj) : error lnk2005: "public: bool __thiscall oddbdimassoc::transspace(void)const " (?transspace@oddbdimassoc@@qbe_nxz) already defined in dd_db_dll.lib(dd_db.dll)
dd_vc6md_db.lib(dbdimassoc.obj) : error lnk2005: "public: class odsmartptr<class oddbosnappointref> __thiscall oddbdimassoc:snappointref(enum oddbdimassoc::associativity)const " (?osnappointref@oddbdimassoc@@qbe?av?$odsmartptr@v oddbosnappointref@@
@@w4associativity@1@@z) already defined in dd_db_dll.lib(dd_db.dll)
dd_vc6md_db.lib(dbabstractviewtablerecord.obj) : error lnk2005: "public: double __thiscall oddbabstractviewtablerecord::height(void)const " (?height@oddbabstractviewtablerecord@@qbenxz) already defined in dd_db_dll.lib(dd_db.dll)
dd_vc6md_db.lib(dbabstractviewtablerecord.obj) : error lnk2005: "public: double __thiscall oddbabstractviewtablerecord::width(void)const " (?width@oddbabstractviewtablerecord@@qbenxz) already defined in dd_db_dll.lib(dd_db.dll)
dd_vc6md_db.lib(dbabstractviewtablerecord.obj) : error lnk2005: "public: class odgepoint3d __thiscall oddbabstractviewtablerecord::target(void)const " (?target@oddbabstractviewtablerecord@@qbe?avodgepo int3d@@xz) already defined in dd_db_dll.lib(dd_d
b.dll)
............
..............
dd_vc6md_root.lib(gicontext.obj) : error lnk2005: "public: virtual void __thiscall odgicontext:lotstyle(class oddbstub *,class odpsplotstyledata &)const " (?plotstyle@odgicontext@@ubexpavoddbstub@@aavodpsp lotstyledata@@@z) already defined in dd_ro
ot_dll.lib(dd_root.dll)
../../../../../exe/release/odreadex.exe : fatal error lnk1169: one or more multiply defined symbols found
error executing link.exe.
creating browse info file...
odreadex.exe - 947 error(s), 0 warning(s)
windowsxp + vc6.0
giving me a hand is appreciated.
you've mixed dll & lib versions.
better use \projectfiles\win32\msvc6\allexamples.dsw workspace.
(or projectfiles\win32\msvc6\allexamplesdll.dsw respectively.)
don't change the projects - they are expected to work as is.
vladimir
thank you.
thank you very much!
did you mean that i should not add anything to project-setting-link-object/library modules, and just set the lib path, if i use \projectfiles\win32\msvc6\allexamples.dsw workspace?
if you unpacked libraries in the same folder as dd_nonlibs, you should not change even library path.
vladimir


所有的时间均为北京时间。 现在的时间是 12:06 AM.