Include an .a
file from a cpp library
#19548
-
Hello everyone, I am new to vlang and interested in using it - looks very good so far! I found a project: https://github.com/jinja2cpp/Jinja2Cpp and built it, Generally, it's about reusing jinja2 templates with v http server. We need this generally for "every language", so html templates and such are not depending on the language (you can use those templates, with php, js, go, rust, ruby, python, ... you see the pattern). Would anybody be able to help or would it generally be possible to do it like this (instead of #flag -I @VMODROOT/Jinja2Cpp
#flag @VMODROOT/Jinja2Cpp/build/libjinja2cpp.a
#include "build/dist/include/jinja2cpp/template.h"
fn main() {
// ... stuff going on
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
See https://github.com/vlang/v/blob/master/doc/docs.md#passing-c-compilation-flags |
Beta Was this translation helpful? Give feedback.
See https://github.com/vlang/v/blob/master/doc/docs.md#passing-c-compilation-flags