As already mentioned, the compilation team starts the assembly, which automatically sends errors to the buffer.
Mx compile
The default behavior is to run make in the directory in which the file you are editing is located.
make -k
-k means keep making mistakes and make as many goals as possible. You can edit the command line at this point.
You have two problems with this setting. Firstly, if your source file is not in the directory where the make file is located, you need to set the default directory file variable. You can do this by adding a line like this at the top of the source file.
// -*- mode: C++; default-directory: "c:/somewhere/yourmakefiledirectory/" -*-
Another problem is that you do not want a makefile. This happens if you have a simple program containing one or more cpp files, and you just want to compile them quickly.
You can do this by setting the compilation file variable. Now, when you run the compilation command, it will appear as the default method for creating your program, and not for creating it.
// -*- compile-command: "g++ -lpsapi -mwindows windowsprogram.cpp -g -o windowsprogram.exe"; -*-
After you have compiled and possibly received some errors, you can run the next-error and previous-error commands to move up and down the source file that views them. I did not like the default keys, and I try to use this setting.
(global-set-key [f5] 'compile) (global-set-key [f7] 'previous-error) (global-set-key [f8] 'next-error)
Other tips like this on the blog .
source share