You are not logged in.

#1 2014-07-03 02:22:23

boogerlad
Member
Registered: 2013-04-20
Posts: 48

How do I add something to the library/include path?

I'm kind of lost installing https://github.com/JosephP91/curlcpp
I've compiled it successfully, but I don't know the exact steps to add what I assume to be libcurlcpp.a to the library path, and the .h files in the include folder to the include path such that I can invoke gcc cleanly. I've read about ldconfig but that does not seem to apply to this project, since we are supposed to statically link?

Offline

#2 2014-07-03 02:39:37

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: How do I add something to the library/include path?

Is there a reason you don't install curlcpp from the AUR?

Offline

#3 2014-07-03 02:46:04

boogerlad
Member
Registered: 2013-04-20
Posts: 48

Re: How do I add something to the library/include path?

I am just curious about the process. I've looked through the pkgbuild and it seems to only deal with the .h files in the include directory; no mention of the .a file.

EDIT: I have just installed it from the AUR, and I can't build the example program.

Last edited by boogerlad (2014-07-03 02:53:51)

Offline

#4 2014-07-03 03:32:55

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: How do I add something to the library/include path?

boogerlad wrote:

I have just installed it from the AUR, and I can't build the example program.

Why can't you build it? Are you wearing handcuffs? Is your computer on fire? wink

If you show me what you are doing then I can begin to help you. smile

Offline

#5 2014-07-03 03:34:17

boogerlad
Member
Registered: 2013-04-20
Posts: 48

Re: How do I add something to the library/include path?

I am getting a "fatal error: curl_easy.h: No such file or directory" Perhaps the command line in the readme.md file is incorrect?

Offline

#6 2014-07-03 10:19:18

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: How do I add something to the library/include path?

gcc accepts the "-I<path>" to use non-standard "Include" directories.

Please post the source code, the command you are using to compile it, and the error message.

Offline

#7 2014-07-04 01:58:21

boogerlad
Member
Registered: 2013-04-20
Posts: 48

Re: How do I add something to the library/include path?

Offline

Board footer

Powered by FluxBB