I am wrtting a small application in c++ ( I am using dev-c++ IDE) to ping hosts. But I am getting the error
 c:\dev-c_~1\dheeraj\projec~1\maincpp.o(.text+0x268):maincpp.cpp: undefined reference to `WSAStartup__FUsP7WSAData@8'
 
I also did the following:-
 
#ifdef __cplusplus
   extern "C" {
   #endif
 
#include <winsock.h>
   #ifdef __cplusplus
   }
   #endif
 
But no result..
 
Please help me out