When writing simple, one file, C++ code, I usually call g++ directly. By default, Flymake seems to assume the presence of a Makefile with a check-syntax target. How do I configure Flymake to simply call g++ directly, e.g:
g++ -c a.cpp
If the answer could be modified to include compiler flags, that would be even better
Many thanks
You can call g++ directly with following flymake configuration.
I got following screenshot when I call
flymake-allowed-file-name-masks
Following is comment version.