Note that the flags you get from curl-config and pkg-config does not include
-I/usr/include/curl so you will still get problems including curl headers. But 
this has a lot of sense. Curl expects the user code to include <curl/header.h> 
instead of just <header.h> which is a good practice to avoid header colision 
among libraries.

Regards.
David.

A Dijous 26 Maig 2011 18:11:25, David García Garzón va escriure:
> A Dimecres 25 Maig 2011 23:30:18, Cliff Chen va escriure:
> > Hello,
> > 
> > I'm trying to link to libcurl in my CLAM module, and I'm having a lot of
> > issues understanding the default SConstruct file provided on the website.
> > libcurl on my machine is in the /usr/include/curl directory. Where would
> > I make modifications to include these libraries in my program?
> 
> libcurl provides a pkg-config file usually at
> /usr/lib/pkgconfig/libcurl.pc, so you can obtain compilation flags using
> pkg-config command.
> In SCons, it is just a matter of calling in the scons file:
>       env.ParseConfig('pkg-config --cflags --libs libcurl')
> and it will populate  the environment properly with compile and link flags.
> 
> curl seems to provide also a program named curl-config. You can use it
> instead of pkg-config if some of your target platforms lacks of
> pkg-config.
> 
> We are quite curious on what people is using CLAM for, so we will pleased
> if you want to explain what is your module/project about.
> 
> Regards.
_______________________________________________
clam-devel mailing list
clam-devel@lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org

Reply via email to