Windows下编译 libevent 64位静态库

按照libevent的文档,使用VC的nmake -f Makefile.nmake便可编译32位release模式。
由于项目中要求编译64位的版本,须要在Makefile.nmake中添加一个LIBFLAGS选项 /MACHINE:X64
若是要加调试信息,能够在 CFLAGS中加入/Zi,32位加调试选项是 CFLAGS中加/ZI,固然要调整优化选项/Ox shell

 

要正确运行"nmake -f Makefile.nmake",请走
    "microsoft visual studio  -> visual tools -> visual studio command prompt"
x64 走
    "microsoft visual studio  -> visual tools -> visual studio x64 win64 command prompt"
windows

至于
    "visual studio x64 win64 command prompt"
    和
    "visual studio x64 cross tools command prompt"
    的区别/困惑,看
    http://artemgrygor.wordpress.com/2010/10/06/writing-windows-shell-extension-context-menu-with-icon-in-c-4-0/wordpress

    或得些许启发优化

相关文章
相关标签/搜索