1

I tried to compile first simple example, and see compile error: undefined reference to `curlpp::Cleanup::Cleanup()'

In linker options i wrote curl-config --libs, in command line

$ curl-config --libs

-lcurl

What am I doing wrong?

Antigluk
  • 1,176
  • 2
  • 11
  • 30

1 Answers1

4

You don't want to link your program against plain-C curl (-lcurl), but against curlpp! Use -lcurlpp instead. You may also call curlpp-config --libs.

Don't forget: curl (without "pp") is a C library, the C++ library is called curlpp

craesh
  • 3,665
  • 3
  • 23
  • 29