I have a main.cpp file that only has this code:
#include <iostream> #include "include/rapi/RApi.h" using namespace std; int main() { std::cout << "Test\n"; return 0; }
When I compile, I want to see warnings from my code, but not from external files. I have been able to achieve this in the past, but there may be something missing from the compilation flags, as I continue to troubleshoot errors from the included header file when I don't want to see them.
This is my compilation command:
g++ -isystem include -pedantic -Wall -Wextra main.cpp -o main.o
I want to see warnings and errors from main.cpp, but not from files in the include folder.
I tried -isysteminclude -isysteminclude/rapi , passing -isystem to the end of the flags, but to no avail.
Did I miss something?
c ++ c ++ 11 compilation makefile
Blunt
source share