[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
I was able to avoid these curl linking errors on windows (mingw win32) by adding option -lcurl.dll. -DCURL_STATICLIB was not needed in my case.
-lcurl.dll
-DCURL_STATICLIB
My build has two libcurl files in mingw/lib folder: libcurl.a and libcurl.dll.a
libcurl.a and libcurl.dll.a