You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: