I am trying to compile a cpp using with the following command:
g++ -IC:\Users\XXX\libcurl-7.56.0\libcurl-7.56.0\include\curl -LC:\Users\XXX\libcurl-7.56.0\libcurl-7.56.0\lib program.cpp this program has a header file which uses libcurl. the curl library is at -
C:\Users\XXX\libcurl-7.56.0\libcurl-7.56.0\include\curl\curl.h gcc gives the following error even though curl.h is in the path -I
mylibrary.h:26:10: fatal error: curl/curl.h: No such file or directory #include <curl/curl.h> what am I doing wrong?
https://stackoverflow.com/questions/66463350/gcc-cant-find-libcurl-header-file-in-the-directory-it-is-located March 04, 2021 at 03:07AM
没有评论:
发表评论