Chinaunix首页 | 论坛 | 博客
  • 博客访问: 630361
  • 博文数量: 85
  • 博客积分: 1306
  • 博客等级: 中尉
  • 技术积分: 990
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-28 11:23
个人简介

嵌入式视频行业。

文章分类

全部博文(85)

文章存档

2015年(7)

2014年(5)

2013年(41)

2012年(11)

2011年(1)

2010年(3)

2008年(17)

分类: LINUX

2013-03-07 22:14:37

错误一:

Undefined reference to `__WSAFDIsSet@8'

Today, I downloaded codes from for our team's project.
I used Codeblocks to work on it with MinGW as compiler as instructed on
One of the error I encountered while compiling was Undefined reference to `__WSAFDIsSet@8'
This is because libws2_32.a is not linked
In CodeBlock, go to Settings>Compiler and Debugger ...
With 'Global compiler settings' selected on the left-hand column, select 'Linker settings' tab,
Add path to libws2_32.a in Link libraries. In my case, it is C:\MinGW\lib\libws2_32.a
The problem is solved 

阅读(3422) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~