Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

README 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. README file for the VS 2019 CPP sample project
  2. Copyright (c) 2020 ARM Research Laboratories
  3. This README file gives an overview of the VS 2019 CPP sample project.
  4. This project links the sample CPP file CPPSample\main.cpp with the
  5. SNFMulti import library.
  6. To build this application:
  7. 1) Open VS2019CPPSampls\VS2019CPPSample.sln with VS 2019.
  8. 2) Select "x64" (if available) or "x86" for the platform.
  9. 3) In the project, open main.cpp. Verify that the value of
  10. ConfigurationPath is the path for the snf_enging.xml Sniffer
  11. configuration file.
  12. 4) Build.
  13. In order to create the SNFMulti import and export libraries, do the
  14. following:
  15. 1) Open a VS2019 command prompt (Tools->Visual Studio 2019 Command
  16. Prompt).
  17. 2) Change to the 32bitDll directory of the SDK.
  18. 3) Enter the command:
  19. LIB /MACHINE:x86 /DEF:snfmulti.def /name:snfmulti.dll /out:vs2019_snfmulti.lib
  20. This creates the vs2019_snfmulti.lib import library and
  21. vs2019_snfmulti.exp export library for the x86 platform. To create
  22. the libraries for the x64 platform:
  23. 4) Change to the 64bitDll directory of the SDK.
  24. 5) Enter the command:
  25. LIB /MACHINE:x64 /DEF:snfmulti.def /name:snfmulti.dll /out:vs2019_snfmulti.lib
  26. This creates libraries for the x64 platform.
  27. To modify a solution file to use SNFMulti, do the following:
  28. 1) Add the header file include/snfmultidll.h.
  29. 2) In Project -> Properties -> Debugging -> Environment, add
  30. the directory containing the SNFMulti libraries and other DLLs.
  31. 3) In Project -> Properties -> Linker -> Input -> Additional
  32. Dependencies, prepend "vs2019_snfmulti.lib".
  33. 4) In Project -> Properties -> Linker -> Optimization -> Link Time
  34. Code Generation, specify "Use Link Time Code Generation").