高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】unresolved Token Linking Odamfcapp
unresolved token linking odamfcapp
unresolved token linking odamfcapp
i have compiled and now am trying to link the sample odamfcapp. i started out with 43 unresolved tokens on the link but after adding all the libraries in the vc2002mt directory, i have gotten rid of all them except one.
link : error lnk2020: unresolved token (0a000338) ?g_pdesc@odwinntcrypt@@2pavodrxclass@@a
is there another library i need to be include? how do i get rid of this error message?
any help will be greatly appreciated.
steve
if you register crypt services in your initialization code you need to link with winntcrupt.cpp from examples/win/crypt.
sergey slezkin
sergey, thanks for the reply.
i added winntcrypt.cpp and winntcrypt.h to the project, recompiled and relinked and now i get 45 unresolved tokens. the list of them are in the attachment.
i also have been getting this message: "link : warning lnk4098: defaultlib 'libcmt' conflicts with use of other libs; use /nodefaultlib:library" but when i use the /nodefault switch i get only one message on the link:
link : fatal error lnk1561: entry point must be defined
what do i need to do to get the link to work?
thanks
steve
attached files (11.6 kb, 3 views)
projectfiles folder contains project file for msvc6 and msvc2003.
i don't know which of about 30 modules you already included but based on unresolved symbols list you need to add:
exhostappservices.cpp
exsystemservices.cpp
exgigdigeometry.cpp
from msvc6 .dsp file:
source=..\..\..\..\..\examples\exservices\exgirast erimage.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\exrender\win\exgsbi tmapdevice.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\exrender\win\exgsgd idevice.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\exrender\win\exgsgd ivectorizedevice.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\exrender\win\exgsop engldevice.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\exrender\win\exgsop englvectorizedevice.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\exrender\win\exgssc reendevice.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\exrender\win\exgswi n32device.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\exrender\win\gsdevi cemanager.cpp
# end source file
# end group
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\appau ditinfo.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\audit dlg.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\child frm.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\class esdlg.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\crypt\cryptlibcrypt .cpp
# prop exclude_from_build 1
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\dlgre sizehelper.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\dwgdo ctemplate.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\dwgvi ew.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\dwgvi ewer.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\exservices\exgienha ncedmetafile.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\exrender\win\exgigd igeometry.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\exservices\exhostap pservices.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\exservices\exodstor age.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\exservices\exsystem services.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\exservices\exundoco ntroller.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\filed ependencydlg.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\findo bjectdlg.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\gripp er.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\light sdlg.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\listf iller.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\loada pps.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\loadl inetypes.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\lwset tingsdlg.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\mainf rm.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\mater ialsdlg.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\named viewsdlg.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\objpr opdlg.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\odala yerpropmanagerdlg.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\odamf capp.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\odamf cappdoc.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\odatr ianparamsdlg.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\exservices\odfilebu f.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\passw orddlg.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\publi shfiledlg.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\setac tivelayoutdlg.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\stdaf x.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\summd lg.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\treef iller.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\useri oconsole.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\vardi alog.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\crypt\winntcryp t.cpp
# end source file
# begin source file
source=..\..\..\..\..\examples\win\odamfcapp\xrefv iewdlg.cpp
sergey slezkin
sergey,
i am still not having much luck with compiling odamfcapp. i think i have so much included that i need to start over from scratch and use the vc6 project as a template for creating my project in vs 2002 (i couldn't find the vs 2003 project you referenced... if you can point me to that, that would be even better.).
but, i have been able to get some of the other examples to compile by referring to their vc6 project and they may be enough to help me do what i need to do.
thanks very much for your help.
steve
sorry, vc2003 project files were not included into 1.10u non_libs.zip
sergey slezkin
|