-
Notifications
You must be signed in to change notification settings - Fork 36
Cannot create CppWriter #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You need to link with the
|
I think thats what I am doing (I am pretty new to cmake so I am not entirely sure) #include "cppwriter/cppwriter.h"
int main(){
cppcodegen::CppWriter writer;
}
In other files I can use cppparser and cppast without any issue. If I comment line 631-632 in I can run this code and get the output I want #include "cppparser/cppparser.h"
#include "cppwriter/cppwriter.h"
#include <iostream>
int main(){
cppparser::CppParser parser;
const auto ast = parser.parseFile("../testing2.cpp");
cppcodegen::CppWriter writer;
writer.emit(*ast,std::cout);
}
Thanks! |
It seems that there is an error creating CppWriter, e.g. I tred to compile the following code:
And got the following error:
Is this an error of the CppWriter, or is it something to do with my environment?
Thanks!
The text was updated successfully, but these errors were encountered: