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,需要自己加一下才能运行)

  • 相关阅读:
    UVA 11354
    HDU 4081 Qin Shi Huang's National Road System 最小/次小生成树的性质
    UVA 10269 Adventure of Super Mario floyd dp
    UVA 11280 Flying to Fredericton 最短路DP
    【专题】树状数组
    【专题】Subsequence
    共享python代码模块
    完全背包
    POJ 3253 Fence Repair
    POJ 3069 Saruman's Army
  • 原文地址:https://www.cnblogs.com/hehe520/p/6330416.html
Copyright © 2011-2022 走看看