0

extracting the curl folder in include path project and include them in code then copy the content of lib folder there is two files 'libcurl.a,libcurl.dll.a' into lib path in mingw and linked it using eclipse ide.

properties>c/c++ build>settings>MinGW c linker>libraries

G.Abdo
  • 1
  • 2

1 Answers1

0

Are you trying to link with curl statically or to link with curl import library both files have the suffix ".lib" so it is a little confusing.

If you are trying to link with curl static library, you need to have the define CURL_STATICLIB defined at your project pre-processor definition.

Eliyahu Machluf
  • 1,251
  • 8
  • 17
  • no there is no file with .lib in zib folder that i loaded it from 'https://curl.haxx.se/' just I am trying by adding .a files. – G.Abdo Aug 05 '18 at 12:51
  • I see this issue was already discussed. see https://stackoverflow.com/questions/4176503/unresolved-symbols-when-linking-a-program-using-libcurl – Eliyahu Machluf Aug 06 '18 at 06:45