hjson/hjson-cpp

Gigantic linker error message

valtsu41 opened this issue · 1 comments

I might have understood something wrong, but when I tried this code

#include "hjson.h"
#include <iostream>
#include <cstdio>

int main() {
  std::string sampleText = R"(
{
  rate: 12.1
  array:
  [
    foo
    bar
  ]
}
)";

  Hjson::Value dat = Hjson::Unmarshal(sampleText.c_str());
  double lol = dat["rate"];
  std::cout << lol;
  return 0;
}

it gave me a linker error so big that it did not fit on my screen.

Seems to be a problem of my compiler.