[Administrator@windows ~]$ g++ client.cpp -lcurl -o client.exe C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\ccKXFUtC.o:client.cpp:(.text+0x23): undefined reference to `_i
Was having the same issue using netbeans 7.1 with mingw. From properties, linker adding library libcurl.dll.a solved the issue for me.
This file was located under curl-7.28.1\lib.libs after I ran the mingw make.