Closed edgs1alu closed 2 years ago
Im encountering this too - no clue why
Try this:
#include <iostream>
#include "ThorSerialize/SerUtil.h"
#include "ThorSerialize/JsonThor.h"
// I added these.
// I have not used the header version much (just some testing).
// If you have some ideas to make it easier to use please let me know.
#include "ThorSerialize/JsonPrinter.source"
#include "ThorSerialize/ThorsSerializerUtil.source"
int main()
{
using ThorsAnvil::Serialize::jsonExporter;
using ThorsAnvil::Serialize::PrinterInterface;
std::vector<int> data {1,2,3,4,5};
std::cout << ThorsAnvil::Serialize::jsonExporter(data, PrinterInterface::OutputType::Stream);
}
Thank you
Have massively cleaned up the header only version.
I'm trying to build the basic examples using the header-only version of the library, I've tried to compile the standard containers example of usage.md:
I've cloned the header-only branch this way:
and when I run
I get this linker error
I am missing something?