Package: libyaml-cpp-dev
Version: 0.5.2-3.1
Severity: important

While compiling/linking a very simple source code, I get a link failure:

$ cat try.cpp 
#include <yaml-cpp/node/parse.h>
#include <yaml-cpp/node/node.h>

int main()
{
        YAML::Node node = YAML::Load("{key: value}");

        return 0;
}
$ g++ -O2 -o try try.cpp -std=c++11 $(pkg-config yaml-cpp --cflags --libs)
/tmp/ccgwxhal.o: In function `main':
try.cpp:(.text.startup+0x15): undefined reference to `YAML::Node::~Node()'
collect2: error: ld returned 1 exit status
$ 


-- System Information:
Debian Release: stretch/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-0.bpo.1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages libyaml-cpp-dev depends on:
ii  libyaml-cpp0.5v5  0.5.2-3.1

libyaml-cpp-dev recommends no packages.

libyaml-cpp-dev suggests no packages.

-- no debconf information

Reply via email to