Chinaunix首页 | 论坛 | 博客
  • 博客访问: 690260
  • 博文数量: 26
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 3182
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-23 14:29
个人简介

7年游戏服务器开发,擅长c/c++,javesript,php;熟悉linux,mysql/redis,elasticsearch;开源爱好者.github : https://github.com/yuyunliuhen

文章分类

全部博文(26)

文章存档

2016年(1)

2015年(3)

2014年(3)

2013年(19)

分类: LINUX

2013-08-11 13:05:01

    使用cygwin编译libevent示例时,错误提示 cannot find -levent collect2: ld returned 1 exit status,看到错误的第一感觉是没有找到链接库。
    首先尝试在/etc/ld.so.conf下添加/usr/local/lib(libevent 安装库所在路径),然后再执行/sbin/ldconfig,发现 cygwin 下无此程序,此方案失败;
    然后尝试在编译时添加 -L/usr/local/lib ,编译OK。
阅读(4022) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~