tomlau10 / gcc-make-run

Compile-run C/C++ source code and execute Makefile in Atom.
https://atom.io/packages/gcc-make-run
MIT License
24 stars 10 forks source link

gcc: error: unrecognized command line option '-f' #46

Closed 771240158 closed 5 months ago

771240158 commented 6 years ago

I can Run it with normal compilation, but I right-click on my project Make Run and he shows where the error -f came from? so

tomlau10 commented 5 months ago

I know it's a bit late. The Make Run feature is to use the make utility to run Makefile. From the screenshot, you incorrectly set it to gcc as it is the compiler not the make utility. You should have left it empty or point to the path of make.exe.

The underlying command when running makefile is make -f <Makefile>.