Skip to content
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

How to add mutator.cc and mutaotr.h into cmake build files? #167

Open
daydayup40 opened this issue Mar 26, 2020 · 1 comment
Open

How to add mutator.cc and mutaotr.h into cmake build files? #167

daydayup40 opened this issue Mar 26, 2020 · 1 comment

Comments

@daydayup40
Copy link

daydayup40 commented Mar 26, 2020

Hi,

I just want to use the Mutate function in Class protobuf_mutator::Mutator to mutate a protobuf messege in my C project, according to https://github.com/google/libprotobuf-mutator#usage, I should simply include mutator.h and mutator.cc into my build files. I use cmake to generate Makefile. I just add a cmake command "include_directories(/usr/local/include/libprotobuf-mutator" into my CMakelist.txt and add a "#include "/home/my/code/libprotobuf-mutator/src/mutator.h"" into my C source file. After I execute command "cmake .. -DCMAKE_CXX_COMPILER=clang++" and "make", I got many compiler errors like "unknown type name ‘namespace’". My OS is ubuntu 18.04.

I'm very new to a lot of this.There may be a lot of problems. Maybe a example from scratch can solve my problem.

How should I do to use the Mutate function in Class protobuf_mutator::Mutator to mutate a protobuf messege in my C project? How to modify my CMakelist.txt and compiler comand or anything else?

Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants