cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

problem using libcurl/curlpp

From: <informatik4u_at_web.de>
Date: Wed, 13 Apr 2005 18:49:14 +0200

Hi i am new to Linux Programming and trying to use libcurl/curlpp for my programm.
Compiling works so far, but when i am linking i get a couple of errors.
i hope you can help me (i am using gentoo linux and anjuta as IDE)

here is my sourcecode:

#include <curlpp/cURLpp.hpp>
#include <curlpp/Options.hpp>
#include <curlpp/Exception.hpp>

using namespace std;

void requestData();

int main()
{
        
    exit(0);
}

void requestData() {
        try
           {
                  cURLpp::Cleanup cleaner;
                  cURLpp::Easy request;
        
                  using namespace cURLpp::Options;
                  request.setOpt(Verbose(true));
                  request.setOpt(Url("http://www.url.de"));
                   
                  request.perform();
           }
           catch ( cURLpp::LogicError & e )
                 {
                   cout << e.what() << endl;
                 }
           catch ( cURLpp::RuntimeError & e )
                {
                   cout << e.what() << endl;
                }
 }

and here are my error messages when i build my programm:

Building source directory of the Project: LHReq ...
make
/bin/sh ../libtool --tag=CXX --mode=link g++ -Wall -o LHReq -L/usr/lib -lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz -lcurl -L/home/thatsme/curlpp -L/home/thatsme main.o
g++ -Wall -o LHReq main.o -L/usr/lib /usr/lib/libcurl.so /usr/lib/libidn.so -lssl -lcrypto -ldl -lz -L/home/thatsme/curlpp -L/home/thatsme
main.o(.text+0x1f2): In function `requestData()':
: undefined reference to `cURLpp::Easy::setOpt(cURLpp::OptionBase const&)'
main.o(.text+0x297): In function `requestData()':
: undefined reference to `cURLpp::Easy::setOpt(cURLpp::OptionBase const&)'
main.o(.text+0x371): In function `requestData()':
: undefined reference to `cURLpp::Easy::perform()'
main.o(.gnu.linkonce.r._ZTVN6cURLpp11OptionTraitISsLN4cURL10CURLoptionE10002EEE+0x8): undefined reference to `cURLpp::OptionBase::operator<(cURLpp::OptionBase const&) const'
main.o(.gnu.linkonce.r._ZTVN6cURLpp11OptionTraitIbLN4cURL10CURLoptionE41EEE+0x8): undefined reference to `cURLpp::OptionBase::operator<(cURLpp::OptionBase const&) const'
main.o(.gnu.linkonce.t._ZN6cURLpp4EasyC1Ev+0xe): In function `cURLpp::Easy::Easy[in-charge]()':
: undefined reference to `cURLpp::OptionList::OptionList[not-in-charge]()'
main.o(.gnu.linkonce.t._ZN6cURLpp4EasyC1Ev+0x17): In function `cURLpp::Easy::Easy[in-charge]()':
: undefined reference to `vtable for cURLpp::Easy'
Completed ... unsuccessful
Total time taken: 1 secs
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
Received on 2005-04-13

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET