I use the makefile system with the pvcs compiler (using the Microsoft Visual C ++ compiler, 2008), and I get several link errors in the form:
error LNK2019: unresolved external symbol __imp__RegisterFilter@8 referenced in function _main
This happens DESPITE using the declaration extern "C", namely:
extern "C" int CLRDUMP_API RegisterFilter( LPCWSTR pDumpFileName, unsigned long DumpType );
In addition, in makeexe.mak the library is linked as:
$ (COMPILEBASE) \ lib \ clrdump.lib \
Honestly, I am not an expert in makefiles, and I am changing the system from Microsoft Visual C ++ 6.0 to 2008. This change may have something to do with link errors, because the system used to work before.
Any help would be really appreciated.
Thanks Advance,
Regards, Joseph
- Change 1 -
Does anyone know how to include verbose in the makefile pvcs system?
, , ,
__imp__RegisterFilter@8
++
RegisterFilter
, - , .
,
- 2 -
- , , :
imp , DLL. CLRDUMP_API - __declspec(dllimport)? . .
, , , , .
, !
- 3 -
ChrisN ( ). , , , .
:
define CLRDUMP_API __declspec(dllimport) __stdcall
, __stdcall ?
- 4 -
, , ChrisN, , , . , - - , . .