code_junkie

Clrdump (C++) error LNK2019: unresolved external symbol __imp__RegisterFilter@8 referenced in function _main

Nov 12th, 2011
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. extern "C" int CLRDUMP_API RegisterFilter( LPCWSTR pDumpFileName, unsigned long DumpType );
  2.  
  3. __imp__RegisterFilter@8
  4.  
  5. RegisterFilter
  6.  
  7. define CLRDUMP_API __declspec(dllimport) __stdcall
  8.  
  9. dumpbin /exports clrdump.lib
  10.  
  11. #include <windows.h>
  12. #include "ClrDump.h"
  13.  
  14. int _tmain(int argc, _TCHAR* argv[])
  15. {
  16. RegisterFilter(L"", 0);
  17. return 0;
  18. }
  19.  
  20. you need to make sure that your liker can see them.
  21.  
  22. // project.def
  23. LIBRARY project
  24. EXPORTS
  25. ulDataInDll CONSTANT
  26.  
  27. Keyword Emits in the import library Exports
  28. CONSTANT _imp_ulDataInDll _ulDataInDll
  29. _ulDataInDll
  30.  
  31. DATA _imp_ulDataInDll _ulDataInDll
Add Comment
Please, Sign In to add comment