i am starting developing a WMI based function for a bug VC6 based app.
as a first test i use a sample code from microsoft
DevEnvir : VC6 with Microsoft Platform SDK for Windows Server 2003 R2
(Note : VC9 with newest SDK works perfectly, but this is currently not an
option)
Source from : http://msdn.microsoft.com/en-us/library/aa390423(VS.85).aspx
and name the source : wmi_sample.cpp
now i use the following script to compile (both with debug info, first uses
cl and link, 2nd uses just cl and let cl call link).
note : there is NO problem when NOT compiled / linked in debug mode)
====== gen.cmd =======
del *.exe *.pdb *.obj *.lib
cl -c -Ge -Od -Zi wmi_sample.cpp
link /incremental:yes /pdbtype:sept /pdb:none /DEBUG wmi_sample.obj
del *.exe *.pdb *.obj *.lib
cl -Ge -Od -Zi wmi_sample.cpp
===========================
ignoring some warnings, this gives:
CVPACK : fatal error CK1007: invalid Types table in module
obj\i386\wbemcli_i.obj
LINK : warning LNK4027: CVPACK error
????
and
wbemuuid.lib(wbemcli_i.obj) : fatal error LNK1103: debugging information
corrupt; recompile module
????
Looks as wbemuuid.lib is corrupted!???)
any ideas?
--
mit freundlichen Grüßen
mario semo