CodeBlocks: Undefined reference to getaddrinfo()
By nick | CodeIf you’re encountering the error “Undefined reference to getaddrinfo()” he’s how to solve the problem. It seems the winsock examples on the MSDN site are very much intended for use with Visual C and therefore you may have to do a few additional things to get everything working correctly. Firstly you’ll need to add

![SDL: Undefined reference to IMG_LOAD [Solved]](http://www.elfnet.org/wp-content/uploads/2011/11/sdl_linker_codeblocks-150x150.jpg)
