link error in building excustobjs_dll in vc8
link error in building excustobjs_dll in vc8
errors are:
creating library .\../../../../../out/vc8/excustobjs_dll_dbg/excustobjs.lib and object .\../../../../../out/vc8/excustobjs_dll_dbg/excustobjs.exp
drxdebugcmds.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall odidfiler::seek(long,enum oddb::filerseektype)" (?seek@odidfiler@@uaexjw4filerseektype@oddb@@@z)
drxdebugcmds.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odidfiler::tell(void)const " (?tell@odidfiler@@ubekxz)
.
i also get link errors such as
dbwrap.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::tell(void)" (?tell@odstreambuf@@uaekxz)
does anybody know which libs i need include?
i am using vc8md.
thanks,
yli
build allexamplesdll.sln of dwgdirect 2.1.1 in msvc8
i am trying to build allexamplesdll.sln in msvc8. i got many link errors. do not know who to build the samples.
creating library ../../../../../exe/vc8/release/odreadexdll.lib and object ../../../../../exe/vc8/release/odreadexdll.exp
exundocontroller.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odflatmemstream::tell(void)" (?tell@odflatmemstream@@uaekxz)
exundocontroller.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odflatmemstream::length(void)" (?length@odflatmemstream@@uaekxz)
exundocontroller.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odflatmemstream::seek(long,enum oddb::filerseektype)" (?seek@odflatmemstream@@uaekjw4filerseektype@oddb@ @@z)
exundocontroller.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall odflatmemstream::copydatato(class odstreambuf *,unsigned long,unsigned long)" (?copydatato@odflatmemstream@@uaexpavodstreambuf@@ kk@z)
exundocontroller.obj : error lnk2001: unresolved external symbol "protected: virtual void __thiscall odflatmemstream::append(unsigned long)" (?append@odflatmemstream@@maexk@z)
exundocontroller.obj : error lnk2019: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall odflatmemstream::copydatato(class odstreambuf *,unsigned long,unsigned long)" (__imp_?copydatato@odflatmemstream@@uaexpavodstrea mbuf@@kk@z) referenced in function "public: virtual unsigned long __thiscall exundocontroller

pdata(class odstreambuf *)" (?popdata@exundocontroller@@uaekpavodstreambuf@@@z )
exundocontroller.obj : error lnk2019: unresolved external symbol "__declspec(dllimport) public: virtual unsigned long __thiscall odflatmemstream::tell(void)" (__imp_?tell@odflatmemstream@@uaekxz) referenced in function "public: virtual unsigned long __thiscall exundocontroller

pdata(class odstreambuf *)" (?popdata@exundocontroller@@uaekpavodstreambuf@@@z )
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::tell(void)" (?tell@odstreambuf@@uaekxz)
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::length(void)" (?length@odstreambuf@@uaekxz)
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::seek(long,enum oddb::filerseektype)" (?seek@odstreambuf@@uaekjw4filerseektype@oddb@@@z)
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall odstreambuf::copydatato(class odstreambuf *,unsigned long,unsigned long)" (?copydatato@odstreambuf@@uaexpav1@kk@z)
../../../../../exe/vc8/release/odreadexdll.exe : fatal error lnk1120: 11 unresolved externals
you don't have to do anything extra..
....for building the examples. build should be possible without any changes.
-praveen
i checked 2.1.1 msvc8 allexamplesdll. it works.
be sure to unpack into empty folder to avoid mixture of different dd versions.
sergey slezkin
i installed in an empty directory and did not make any changes in the sample projects. i still get all the link errors.
which libs are needed to solve the symbol of odstreambuf::tell, etc.
dbfiller.obj : error lnk2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall odflatmemstream::init(void *,unsigned long,unsigned long)" (__imp_?init@odflatmemstream@@qaexpaxkk@z) referenced in function "class odsmartptr<class oddbole2frame> __cdecl createfromfile(class odstring const &)" (?createfromfile@@ya?av?$odsmartptr@voddbole2frame @@@@abvodstring@@@z)
dbfiller.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odflatmemstream::tell(void)" (?tell@odflatmemstream@@uaekxz)
dbfiller.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odflatmemstream::length(void)" (?length@odflatmemstream@@uaekxz)
dbfiller.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odflatmemstream::seek(long,enum oddb::filerseektype)" (?seek@odflatmemstream@@uaekjw4filerseektype@oddb@ @@z)
dbfiller.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall odflatmemstream::copydatato(class odstreambuf *,unsigned long,unsigned long)" (?copydatato@odflatmemstream@@uaexpavodstreambuf@@ kk@z)
dbfiller.obj : error lnk2001: unresolved external symbol "protected: virtual void __thiscall odflatmemstream::append(unsigned long)" (?append@odflatmemstream@@maexk@z)
dbfiller.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::tell(void)" (?tell@odstreambuf@@uaekxz)
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::tell(void)" (?tell@odstreambuf@@uaekxz)
odwriteex.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::tell(void)" (?tell@odstreambuf@@uaekxz)
dbfiller.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::length(void)" (?length@odstreambuf@@uaekxz)
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::length(void)" (?length@odstreambuf@@uaekxz)
odwriteex.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::length(void)" (?length@odstreambuf@@uaekxz)
dbfiller.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::seek(long,enum oddb::filerseektype)" (?seek@odstreambuf@@uaekjw4filerseektype@oddb@@@z)
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::seek(long,enum oddb::filerseektype)" (?seek@odstreambuf@@uaekjw4filerseektype@oddb@@@z)
odwriteex.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::seek(long,enum oddb::filerseektype)" (?seek@odstreambuf@@uaekjw4filerseektype@oddb@@@z)
dbfiller.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall odstreambuf::copydatato(class odstreambuf *,unsigned long,unsigned long)" (?copydatato@odstreambuf@@uaexpav1@kk@z)
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall odstreambuf::copydatato(class odstreambuf *,unsigned long,unsigned long)" (?copydatato@odstreambuf@@uaexpav1@kk@z)
odwriteex.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall odstreambuf::copydatato(class odstreambuf *,unsigned long,unsigned long)" (?copydatato@odstreambuf@@uaexpav1@kk@z)
../..
thanks,
yli
odstreambuf functions are in dd_root but:
today i unpacked 2.1.1 zips into empty folder.
opened allexamplesdll.sln in projectfiles\win32\msvc8 folder
made allexamples the start project
set active configuration to release.
build solution.
set configuration to debug
build solution.
it works.
sergey slezkin
btw, i only downloaded the 3 zip files and installed them into a new directory:
dd_nonlibs.zip
dd_vc8.zip
dd_vc8dbg.zip
anything i miss?
thanks,
yli
be sure you have no old version location among vc++ directories set in vc8 paths (include, libs).
yesterday you wrote you use 2.1.1
i checked both 2.1.1 and 2.2.0
sergey slezkin
i used dumpbin dd_root_dll.lib to try to find out the export symbol. here is what i found:
dumpbin shows that
oduint32 is defined as __int64
dumpbin results:
?tell@odflatmemstream@@uae_kxz (public: virtual unsigned __int64 __thiscall odflatmemstream::tell(void))
?tell@odstreambuf@@uae_kxz (public: virtual unsigned __int64 __thiscall odstreambuf::tell(void))
?textextentsbox@odgicontext@@uaexabvodgitextstyle@ @pbghkaavodgepoint3d@@2pav3@@z (public: virtual void __thiscall
but my link errors show oduint32 is defined as long:
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::tell(void)" (?tell@odstreambuf@@uaekxz)
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::length(void)" (?length@odstreambuf@@uaekxz)
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::seek(long,enum oddb::filerseektype)" (?seek@odstreambuf@@uaekjw4filerseektype@oddb@@@z)
should oduint32 not be defined to be __int64 because we are building for win32?
i think i need to set some environment variables. what are the variables i need to set?
btw, i am using vc8sp1 beta.
hi, sergey,
would you check what is ulong_max defined in your computer?
in my computer it is defined as:
#define ulong_max 0xfffffffful /* maximum unsigned long value */
in c:\program files\microsoft visual studio 8\vc\include\limits.h
thanks,
yawei
last edited by yli; 15th december 2006 at 10:11 amfff">.
in dd 2.2 tell() seek() length() use oduint64 (previously stream length and positions were oduint32.
the effect you have means that you use object files which were compiled with old dwgdirect version. and you link them with new dd.
check include folders you use and be sure to make rebuild all in your project. no need in defining oduitn32 as _int64 :-)
sergey slezkin