Dev C++ is very old and outdated and no longer supported. Consider upgrading your IDE to maybe Code::Blocks of 1 of the MSVS Community versions, 2017 or 2019. All are free IDE and better supported with updates.
I have not used Curl, but I would guess that there a ".h" header file. This only describes the functions where the ".dll" file contains the actual functions.
I took a drive by of the download and there is a .lib folder with .a files in it. That is unixism for .lib ..
and the faq, how to get it working from a simplified level:
1. copy a suitable lib/config-*.h file as a start to lib/config-[youros].h
2. edit lib/config-[youros].h to match your OS and setup
3. edit lib/curl_setup.h to include config-[youros].h when your OS is
detected by the preprocessor, in the style others already exist
4. compile lib/*.c and make them into a library
I think you are going to eventually need to either build or find a library file... but I have been wrong before ... keep reading the instructions and see if you agree...
@thmm, those codeblocks install directions are nice, even though the stackoverflow topic is over 9 years old. The current cURL version isn't 7.50 as mentioned in the article, it's 7.78.
A shame some people would want to download 7.50. :(
I'd bet on the installation process being the same or similar, the basic IDE user interface hasn't changed substantially.
I was simply pointing out that some people wouldn't be able to adapt to any change, including the referenced cURL version. I've hit that particular "wall" when trying to help others.
Curl depends on external libraries for some features (and libcurl for all features). You can build curl without them, but curl gets a lot better if you have a few of these libraries:
Do you have any of the dependency libraries cURL wants or requires to be installed? The errors you showed indicate you don't have nghttp2.
You can build cURL without any of the dependency, but I dare say doing so isn't for a beginner.
||=== Build: Debug in bobs (compiler: GNU GCC Compiler) ===|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(content_encoding.o)|| undefined reference to `BrotliDecoderCreateInstance'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(content_encoding.o)|| undefined reference to `BrotliDecoderDecompressStream'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(content_encoding.o)|| undefined reference to `BrotliDecoderDestroyInstance'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(content_encoding.o)|| undefined reference to `BrotliDecoderGetErrorCode'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(content_encoding.o)|| undefined reference to `BrotliDecoderDestroyInstance'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_err2string'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_msgfree'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_unbind_s'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_set_option'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_init'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_sslinit'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_set_option'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_set_option'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_set_option'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_err2string'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_search_s'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_err2string'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_first_entry'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_get_dn'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_memfree'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_first_attribute'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_get_values_len'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_value_free_len'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_memfree'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_next_attribute'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ber_free'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_next_entry'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_get_dn'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_value_free_len'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_memfree'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ber_free'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_memfree'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_memfree'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_simple_bind_s'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_bind_s'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(ldap.o)|| undefined reference to `_imp__ldap_bind_s'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(openssl.o)|| undefined reference to `_imp__CertOpenSystemStoreA@8'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(openssl.o)|| undefined reference to `_imp__CertEnumCertificatesInStore@8'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(openssl.o)|| undefined reference to `_imp__CertGetIntendedKeyUsage@16'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(openssl.o)|| undefined reference to `_imp__CertGetEnhancedKeyUsage@16'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(openssl.o)|| undefined reference to `_imp__CertGetEnhancedKeyUsage@16'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(openssl.o)|| undefined reference to `_imp__CertFreeCertificateContext@4'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(openssl.o)|| undefined reference to `_imp__CertCloseStore@8'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(schannel.o)|| undefined reference to `_imp__CertFreeCertificateContext@4'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(schannel.o)|| undefined reference to `_imp__CertEnumCertificatesInStore@8'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(schannel.o)|| undefined reference to `_imp__CertEnumCertificatesInStore@8'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(schannel.o)|| undefined reference to `_imp__CertFreeCertificateContext@4'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(schannel.o)|| undefined reference to `_imp__CertEnumCertificatesInStore@8'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(schannel.o)|| undefined reference to `_imp__CertEnumCertificatesInStore@8'|
..\..\..\..\..\MinGW\i686-w64-mingw32\lib\libcurl.a(schannel.o)|| undefined reference to `_imp__CertFreeCertificateContext@4'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build failed: 50 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
Is there any other library like curl? all i need send get request to my site ,
You can try another library from this list. https://en.cppreference.com/w/cpp/links/libs
Scroll to bottom -> Web
I am not sure if they are easier to install
Another option would be to bundle your app with the python interpreter(1 .dll ?)
and call the python code from your app.