CINXE.COM
using libcurl
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>using libcurl</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <link rel="stylesheet" type="text/css" href="/curl.css"> <link rel="shortcut icon" href="/favicon.ico"> <link rel="icon" href="/logo/curl-symbol.svg" type="image/svg+xml"> <link rel="alternate" type="application/rss+xml" title="cURL Releases" href="https://github.com/curl/curl/releases.atom"> </head> <body> <div class="main"> <div class="menu"> <a href="/libcurl/using/" class="itemselect">Using libcurl </a> <a href="/libcurl/using/autoconf.html" class="menuitem" title="How to detect libcurl with autoconf">autoconf</a> <a href="/libcurl/using/curl-config.html" class="menuitem" title="How to use curl-config">curl-config</a> </div> <div class="contents"> <div class="where"><a href="/">curl</a> / <a href="/libcurl/">libcurl</a> / <b>Using libcurl</b></div> <h1> using libcurl </h1> <p> General hints and suggestions to consider when using libcurl in your applications are gathered here. <ul> <li> Language-specific docs are found on the <a href="../">libcurl front page</a> <li> Check the full guide to the <a href="../c/">C API</a> <li> Learn from our collection of <a href="../c/example.html">source code examples</a> </ul> <p> Our suggested way on <a href="autoconf.html">how to write autoconf to find libcurl</a>. <h1> curl-config is our friend </h1> <p> Applications (or actually whoever) that want to find out about the libcurl installation on a particular host, will find a friend in the <a href="curl-config.html">curl-config</a> tool. <p> <i>What compiler flags do I need to compile libcurl using source code?</i> <pre> curl-config --cflags </pre> <p> <i>What linker options do I need when I link with libcurl?</i> <pre> curl-config --libs </pre> <p> <i>How do I know if libcurl was built with SSL support?</i> <pre> curl-config --feature | grep SSL </pre> <p> <i>What's the installed libcurl version?</i> <pre> curl-config --version </pre> </div> </div> </body> </html>