How to include cURL library?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to include cURL library?
# 1  
Old 04-01-2013
How to include cURL library?

Hi,

I've got a project to write a C++ code to open a webpage,read the content and write it in a file. I'm using cURL and compiling the code using G++ in unix. I'm getting compilation error as: "cURL.h: no file or directory".

Can some one please tell me how to install/link this library in unix?

Thanks.
# 2  
Old 04-01-2013
It is usually
Code:
#include <curl/curl.h>

What OS are you on? Please show the output of this:
Code:
uname -a

Next issue. We need to see if you already have curl. (lowercase). Please post the output of:
Code:
find / -name 'curl.h' 2>/dev/null

# 3  
Old 04-01-2013
Here are the results:

Code:
uname -a

Linux cpclb2a682 2.6.18-238.5.1.el5 #1 SMP Mon Feb 21 05:52:39 EST 2011 x86_64 x86_64 x86_64 GNU/Linux



Code:
find / -name 'curl.h' 2>/dev/null

find: paths must precede expression
Usage: find [-H] [-L] [-P] [path...] [expression]
# 4  
Old 04-03-2013
Please somebody help me !!!!!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Programming

C++ linking library to a library

Hi All, My application main engine will use a shared library where we do many operation. We are trying to implement the linear algebra operation on the shared library for that I need to link my shared library to the lapack library in /usr/lib. Below is my make file. Can you please let me... (2 Replies)
Discussion started by: arunkumar_mca
2 Replies

2. AIX

Add shared members from library to same library in a different directory

I'm trying to install libiconv to AIX 7.1 from an rpm off of the perzl site. The rpm appears to install but I get this error message. add shr4.o shared members from /usr/lib/libiconv.a to /opt/freeware/lib/libiconv.a add shr.o shared members from /usr/lib/libiconv.a to ... (5 Replies)
Discussion started by: kneemoe
5 Replies

3. Linux

./configure problem for libsf library due to apparently missing libdb library.

Hello, ./configure script fails to configure libsf. Please check the following last few lines of configure script error. checking for db1/db.h... no checking for db.h... yes checking for dbopen in -ldb1... no configure: error: No libdb? No libsf. But find command shows the following; ... (4 Replies)
Discussion started by: vectrum
4 Replies

4. Programming

Even the Static cURL Library Isn't Static

I'm writing a program which uses curl to be run on Linux PCs which will be used by a number of different users. I cannot make the users all install curl on their individual machines, so I have tried to link curl in statically, rather than using libcurl.so. I downloaded the source and created a... (8 Replies)
Discussion started by: BrandonShw
8 Replies

5. Programming

help with C #include

i have three files a.h t.c and p.c a.h has 3 functions only and does not include anything p.c has one function i made called go t.c has a main function and calls the go function, it includes a.h only i run the program using gcc -Wall -g -o t p.c t.c but i get a warning, implicet... (2 Replies)
Discussion started by: omega666
2 Replies

6. Linux

Could static library include static library?

I have some static library(libxxx.a libyyy.a). And I want to generate my library(libzzz.a), libzzz.a will use libxxx.a and libyyy.a I wan't my application only use libzzz.a, (means libzzz.a had include libxxx.a, libyyy.a), how can I do that? Thank you. example: I have zzz.c. I do ... (4 Replies)
Discussion started by: freemagic
4 Replies

7. Shell Programming and Scripting

How to change a Makefile from building static library to shared library?

Hi: I have a library that it only offers Makefile for building static library. It built libxxx.a file. How do I in any way build a shared library? (either changin the Makefile or direct script or command to build shared library) Thanks. (1 Reply)
Discussion started by: cpthk
1 Replies

8. UNIX for Dummies Questions & Answers

#include?

I have a file that contains some variables that I may want to share throughout multiple scripts. I think there's an #include command in UNIX. How do I use it (in korn)? (1 Reply)
Discussion started by: yongho
1 Replies
Login or Register to Ask a Question