Hi, I'm looking to use mstch from python as a more performant mustache template renderer, however my experience with compiling c++ is letting me down.
Could you give an idiot proof explanation of how to compile the first example in README.md?
(env) python-mustache ➤ g++ -std=c++11 example.cpp -o example
/tmp/ccPGuipz.o: In function `main':
example.cpp:(.text+0x668): undefined reference to `mstch::render(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, boost::variant<boost::detail::variant::recursive_flag<decltype(nullptr)>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, double, bool, mstch::internal::lambda_t<boost::recursive_variant_>, std::shared_ptr<mstch::internal::object_t<boost::recursive_variant_> >, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, boost::recursive_variant_, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, boost::recursive_variant_> > >, std::vector<boost::recursive_variant_, std::allocator<boost::recursive_variant_> > > const&, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&)'
collect2: error: ld returned 1 exit status
Hi, I'm looking to use mstch from python as a more performant mustache template renderer, however my experience with compiling c++ is letting me down.
Could you give an idiot proof explanation of how to compile the first example in README.md?
After installing mstch (
cmake; make; sudo make install) I'm getting:What am I doing wrong?