NuLL3rr0r

Building ZeroMQ dynamically (Windows / VC++ 2010)

Dec 20th, 2012
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. 1. Open 'builds\msvc\msvc10.sln' in VC++ 2010
  2.  
  3. 2. Use below settings for 'libzmq' project in both Debug and Release build modes:
  4. Debug:
  5. Configuration Properties > General > Target Name > $(ProjectName)_d
  6. Configuration Properties > General > Configuration Type > Dynamic Library (.dll)
  7. Configuration Properties > General > Character Set > Use Unicode Character Set
  8. Configuration Properties > C/C++ > Code Generation > Runtime Library > Multi-threaded Debug DLL (/MDd)
  9. Configuration Properties > C/C++ > Output Files > Program Database File Name > $(OutDir)$(ProjectName)_d.pdb
  10. Release:
  11. Configuration Properties > General > Configuration Type > Dynamic Library (.dll)
  12. Configuration Properties > General > Character Set > Use Unicode Character Set
  13. Configuration Properties > C/C++ > Code Generation > Runtime Library > Multi-threaded DLL (/MD)
  14. Configuration Properties > C/C++ > Output Files > Program Database File Name > $(OutDir)$(ProjectName).pdb
  15.  
  16. 3. Bulid 'libzmq' project then grab these files and copy them to our lib folder:
  17. Debug: bin\Win32\libzmq_d.dll bin\Win32\libzmq_d.pdb lib\Win32\libzmq_d.exp lib\Win32\libzmq_d.lib
  18. Release: bin\Win32\libzmq.dll bin\Win32\libzmq.pdb lib\Win32\libzmq.exp lib\Win32\libzmq.lib
  19.  
  20. 4. Don't forget to define WIN32_LEAN_AND_MEAN or _WINSOCKAPI_ in your own projects in order to be able to build them successfully:
  21. Configuration Properties > C/C++ > Preprocessor > Preprocessor Definitions > WIN32_LEAN_AND_MEAN
  22. // OR
  23. Configuration Properties > C/C++ > Preprocessor > Preprocessor Definitions > _WINSOCKAPI_
Advertisement
Add Comment
Please, Sign In to add comment