dwgdirect sample project build failed
dwgdirect sample project build failed
hi,
i downloaded "dwgdirect?version 1.11.01.00" and tried to build the sample
project in "\dd_nonlibs\projectfiles\win32\msvc2003\examples\ odamfcapp" using vc.net 2003. but i got the following link error. does anyone know what is the problem?
------ build started: project: odamfcapp, configuration: debug win32 ------
linking...
link : warning lnk4075: ignoring '/editandcontinue' due to '/incremental:no' specification
dd_vc2003md_dwftoolkit.lib(stringutil.obj) : error lnk2005: "long __stdcall atl::atlwinmoduleinit(struct atl::_atl_win_module70 *)" (?atlwinmoduleinit@atl@@ygjpau_atl_win_module70@1@ @z) already defined in atlsd.lib(atlfuncs.obj)
dd_vc2003md_dwftoolkit.lib(stringutil.obj) : warning lnk4006: "long __stdcall atl::atlwinmoduleinit(struct atl::_atl_win_module70 *)" (?atlwinmoduleinit@atl@@ygjpau_atl_win_module70@1@ @z) already defined in atlsd.lib(atlfuncs.obj); second definition ignored
creating library ../../../../../exe/vc2003/debug/odamfcapp.lib and object ../../../../../exe/vc2003/debug/odamfcapp.exp
link : warning lnk4098: defaultlib 'libc' conflicts with use of other libs; use /nodefaultlib:library
link : warning lnk4199: /delayload

leacc.dll ignored; no imports found from oleacc.dll
../../../../../exe/vc2003/debug/odamfcapp.exe : fatal error lnk1169: one or more multiply defined symbols found
build log was saved at "file://h:\dd_nonlibs\projectfiles\win32\msvc2003\examples \odamfcapp\debug\buildlog.htm"
odamfcapp - 2 error(s), 4 warning(s)
----------
here are all options used for building the project:
/out:"../../../../../exe/vc2003/debug/odamfcapp.exe" /incremental:no /nologo /libpath:"h:\opendwg04\vc2003\lib\vc2003md" /libpath:"h:\dd_nonlibs\thirdparty\lib\win32\msvc6\ dll\vc6mdd" /nodefaultlib:"msvcrt" /delayload:"oleacc.dll" /debug /pdb:"../../../../../exe/vc2003/debug/odamfcapp.pdb" /subsystem:windows /machine:x86 excustobjs.lib dd_vc2003md_ole.lib dd_vc2003md_br.lib dd_vc2003md_acisbuilder.lib dd_vc2003md_acisrenderer.lib gs_wingdi.lib dd_vc2003md_modelergeometry.lib gs_winopengl.lib dd_vc2003md_rxrasterservices.lib dd_vc2003md_rxrasterservices.lib dd_vc2003md_modelergeometry.lib gs_winopengl_withworlddisplist.lib dd_vc2003md_dwftoolkit.lib dd_vc2003md_alloc.lib dd_vc2003md_dwfimport.lib dd_vc2003md_spatialindex.lib dd_vc2003md_svgexport.lib dd_vc2003md_gi.lib glu32.lib dd_vc2003md_jpeg.lib dd_vc2003md_db.lib dd_vc2003md_ge.lib dd_vc2003md_gs.lib dd_vc2003md_root.lib opengl32.lib dd_vc2003md_dwfexport.lib dd_vc2003md_zlib.lib dd_vc2003md_zip.lib cl32.lib delayimp.lib delayimp.lib
by the way, is there any document talking about how to upgrade
a program that uses opendwg libraries to use dwgdirect libraries?
it seems that it is not an "easy" task to upgrade a program that uses
the old libraries since classes and interfaces in new libraries are totally different.
any answers/solutions are greatly appreciated!
gary
problem solved
i solved the problem based on other posting and my changes.
quote:
originally posted by gyan
i solved the problem based on other posting and my changes.
what was the cause?
causes
i think that is lib link order problem. also "atlsd.lib" should be added to
the "link->input->additional dependencies" list in project properties dialog
box for "debug" build:
in the project properties dialog box, select "debug" configuration.
then select "linker->input" on left-hand side, on the righ-hand side,
for "additional dependencies" , i specifies the following libraries:
excustobjs.lib
dd_vc2003md_rxrasterservices.lib
dd_vc2003md_ole.lib
gs_winopengl.lib
gs_wingdi.lib
gs_winopengl_withworlddisplist.lib
dd_vc2003md_br.lib
dd_vc2003md_acisrenderer.lib
dd_vc2003md_acisbuilder.lib
dd_vc2003md_modelergeometry.lib
dd_vc2003md_alloc.lib
dd_vc2003md_dwfimport.lib
dd_vc2003md_spatialindex.lib
dd_vc2003md_svgexport.lib
dd_vc2003md_gi.lib
glu32.lib
dd_vc2003md_jpeg.lib
dd_vc2003md_db.lib
dd_vc2003md_ge.lib
dd_vc2003md_gs.lib
dd_vc2003md_root.lib
opengl32.lib
dd_vc2003md_dwftoolkit.lib
dd_vc2003md_dwfexport.lib
dd_vc2003md_zlib.lib
dd_vc2003md_zip.lib
atlsd.lib
then the project can be built successfully.