For those of us who now use C# working with C++ can bring back some painful memories of unresolved externals. Having spent some time tracking down why code would build in static mode rather than shared (MD) mode i discovered that one of their .libs was different under the 2 build models.
To check out what is going on:
C:\Program Files\Microsoft Visual Studio\VC98\Bin>lib /EXTRACT:.\DebugMD\EasyDBC
ommand.obj /OUT:test C:\root\marex\DebugMD\xputils.lib
the /OUT command extracts the required module.
Then to see whats in the object extracted use:
C:\Program Files\Microsoft Visual Studio\VC98\Bin>dumpbin /SYMBOLS test > zuc.txt
You can then dig through zuc.txt to find the missing/offending external reference - in my case the number of parameters on a call had changed.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment