How do I solve these libcurl linking errors?

后端 未结 4 1077
借酒劲吻你
借酒劲吻你 2020-12-17 22:21
[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         


        
4条回答
  •  半阙折子戏
    2020-12-17 22:28

    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.

提交回复
热议问题