Portál AbcLinuxu, 4. prosince 2025 16:31
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <signal.h>
#include </usr/include/curl/curl.h>
void printI(char *txt) {
puts(txt);
}
int main(int argc, char **argv) {
printI("Start...\n");
#ifdef __CURL_CURL_H
printI("OK");
curl_global_cleanup();
#endif
char ch[256];
gets(ch);
return EXIT_SUCCESS;
}
Řešení dotazu:
-l curl). Můžeš lépe popsat, co a jak kompiluješ?
curl.h - je hlavičkový soubor, ne knihovna (i když je její součástí). Ten je potřeba k tomu aby bylo možné funkce „používat“ – obsahuje jen deklarace funkcí.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.