odamfcapp compilation
odamfcapp compilation
how do i compile odamfcapp with vc8 or vc7
in vc8 i tried to compile all ingoing libs as debug. afterwards i compiled odamfcapp as debug and got the following error (nearly the same in release):
------ build started: project: odamfcapp, configuration: debug win32 ------
linking...
atlsd.lib(externs.obj) : error lnk2005: "char const * const g_pszupdateeventname" (?g_pszupdateeventname@@3pbdb) already defined in atls.lib(externs.obj)
atlsd.lib(externs.obj) : error lnk2005: "char const * const g_pszallocfilemapname" (?g_pszallocfilemapname@@3pbdb) already defined in atls.lib(externs.obj)
atlsd.lib(externs.obj) : error lnk2005: "char const * const g_pszkernelobjfmt" (?g_pszkernelobjfmt@@3pbdb) already defined in atls.lib(externs.obj)
atlsd.lib(externs.obj) : error lnk2005: "class catlallocator g_allocator" (?g_allocator@@3vcatlallocator@@a) already defined in atls.lib(externs.obj)
atlsd.lib(atltrace.obj) : error lnk2005: "unsigned int (__stdcall* atl::g_pfngetthreadacp)(void)" (?g_pfngetthreadacp@atl@@3p6gixza) already defined in atls.lib(atltrace.obj)
link : warning lnk4098: defaultlib 'msvcrt' conflicts with use of other libs; use /nodefaultlib:library
link : warning lnk4199: /delayload

leacc.dll ignored; no imports found from oleacc.dll
acissavedialog.obj : error lnk2019: unresolved external symbol "public: static class odrxclass * __cdecl odassurfbody::desc(void)" (?desc@odassurfbody@@sapavodrxclass@@xz) referenced in function "public: static class odsmartptr<class odassurfbody> __cdecl odassurfbody::cast(class odrxobject const *)" (?cast@odassurfbody@@sa?av?$odsmartptr@vodassurfbo dy@@@@pbvodrxobject@@@z)
odamfcapp.obj : error lnk2001: unresolved external symbol "class odrxmodule * __cdecl odrxcreatemoduleobject_for_odrecomputedimblockmodu le(class odstring const &)" (?odrxcreatemoduleobject_for_odrecomputedimblockmo dule@@yapavodrxmodule@@abvodstring@@@z)
odamfcapp.obj : error lnk2001: unresolved external symbol "class odrxmodule * __cdecl odrxcreatemoduleobject_for_bitmapmodule(class odstring const &)" (?odrxcreatemoduleobject_for_bitmapmodule@@yapavod rxmodule@@abvodstring@@@z)
odamfcapp.obj : error lnk2001: unresolved external symbol "class odrxmodule * __cdecl odrxcreatemoduleobject_for_autosurfservicesmodule( class odstring const &)" (?odrxcreatemoduleobject_for_autosurfservicesmodul e@@yapavodrxmodule@@abvodstring@@@z)
../../../../../exe/vc8/debug/odamfcapp.exe : fatal error lnk1120: 4 unresolved externals
build log was saved at "file://d:\srcdwg\dwgdirect_2.3.1\projectfiles\win32\msvc8 \examples\odamfcapp\debug\buildlog.htm"
odamfcapp - 10 error(s), 2 warning(s)
========== build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
any help?
laurs
laurs,
as i stated in the other thread a minute ago...
if you open
projectfiles\win32\msvc8\allexamples.sln
and build the "odamfcapp" project, that should build everything.
last edited by pete rimkus; 12th june 2007 at 05:43 amfff">.
odamfcapp release mode ok
thanks
i could compile odamfcapp in release mode but not in debug with vc8 sp1.
did you see the same: that debug gave at least 4 errors like this one:
atlsd.lib(externs.obj) : error lnk2005: "char const * const g_pszupdateeventname" (?g_pszupdateeventname@@3pbdb) already defined in atls.lib(externs.obj)
?
what do i do wrong?
laurs
mmmmm...it builds fine in debug for me.
i'm using the vc2005 non-sp version of dd2.3.1, though.
i used vc2005 sp1 and it builds fine for me in debug and release mode.
i did get one error with the odpc3read project not being able to find the zlib.h file, but it did not prevent any of the other projects from building.
as pete suggested, it is best to open the allexamples.sln and then do a full rebuild, instead of opening individual projects. this way all the dependancies will be correctly built as well.
regards,
sijmen.
odamfcapp build in debug
i could compile all in relase, except odpc3read project not being able to find the zlib.h file, as for sijmen it did link well in release.
in debug a lot of libs are missing in vc8mdd (11 projects gives linker errors). if i change the project linker additional directories, it links to the non debug versions of the libs. ex: 'dd_vc8md_pdftoolkit.lib', but i get at least 4 error like:
atlsd.lib(externs.obj) : error lnk2005: "char const * const g_pszupdateeventname" (?g_pszupdateeventname@@3pbdb) already defined in atls.lib(externs.obj)
in the odamfcapp link.
any ideas?
laurs
perhaps you did not download debug libs, or mixed versions somehow?
vladimir
debug compilation of odamfcapp
i downloaded the debug libs and the nonlibs again, to start from the beginning.
in debug compilation i still got some failures, and in release only the one which did not preven odamfcapp to run.
i installed msvc 2005 sp1 before starting version 2.3.1, so i think there must be a setting some where in the projects which fools around me.
my projects are on drive d: , could that do it?
laurs
please perform the following steps:
1. open projectfiles\win32\msvc8\allexamples.sln,
2. select allexamples.vcproj as a starting project,
3. select active configuraiton "debug - ...",
4. build solution,
5. post the errors obtained.
vladimir
odamfcapp compile
thanks for your help.
i compiled using the short description from vladimir, and that clarified the problem for me. it was a mix of debug-libs from vc7 and vc8. i deleted al libs and installed from scratch and everything compiled fine.
laurs