jamboree / bustache

C++20 implementation of {{ mustache }}
82 stars 10 forks source link

example of compiling the exmple #4

Closed samuelcolvin closed 5 years ago

samuelcolvin commented 7 years ago

Hi, would be great if you could give some instructions on compiling the example.

I've tried following the example at https://wandbox.org/permlink/Vxmrb2GgcLKicC7N and I'm running

g++ example/main.cpp -Wall -Wextra  -std=c++11 "-I/usr/include" "-I./include"

but I'm getting masses of undefined reference to bustache::* and undefined reference to boost::*

cmake .; make; sudo make install all work fine. I'm on ubuntu 17.04.

jamboree commented 7 years ago

I think you also need to link to the generated lib, use -l compiler option.