嵌入式视频行业。
分类: 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