zoukankan      html  css  js  c++  java
  • [C++] 在windows下编译libevent 2.0

    在下载的libevent里面是没有visual studio的项目文件的。编译起来比较麻烦。

    下面是我整理的一个vcproj项目文件。需要的同学请另存为libevent-2.0.4-alpha.vcproj,放在“D:/project/libevent-2.0.4-alpha/libevent-2.0.4-alpha”目录下。

    目录不一致的话自己修改一下。提供这个项目文件的主要目的有两个:1,列出哪些文件是windows下编译需要的;2,以实际例子来说明项目应该如何设置才能正确编译。

    我用这个项目文件编译出来的libevent可以正确的运行sample目录下的helloworld例子。

    (helloworld例子没有WSAStartup,需要自己加一下才能运行)

  • 相关阅读:
    js实现点击图片 弹出放大效果
    Linux 命令
    前台input输入框,输入内容并同步增加输入框长度
    Git
    Git 常用命令
    Windows环境git执行git add命令warning: ....
    Tomcat配置https、访问http自动跳转至https
    An internal error occurred during: "Importing Maven projects". Unsupported IClasspathEntry kind=4
    自定义滚动条mCustomScrollbar
    本地项目,发布至服务器
  • 原文地址:https://www.cnblogs.com/hehe520/p/6330416.html
Copyright © 2011-2022 走看看