linter-gcc icon indicating copy to clipboard operation
linter-gcc copied to clipboard

linter-gcc doesn't work on mac

Open ghost opened this issue 6 years ago • 3 comments

Checklist

  • [x] Check that you have the GNU C Compiler installed by typing gcc --version into a terminal.
  • [x] If you don't have the linter package installed, either update to the latest version of linter-gcc or install linter directly with apm install linter.
  • [ ] Ensure that you are using a valid grammar - either C/C++/C++14
  • [ ] Ensure that you have read all the relevant information in the wiki, particularly the Common Issues page.

Issue (including debugging messages):

This what I got: clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated] clang: warning: argument unused during compilation: '-fmax-errors=0' [-Wunused-command-line-argument] error: unable to open output file '344b1c6a-47fb-4896-8996-0a29bc870466.o': 'Permission denied' 1 error generated. I install gcc with homebrew already and clicked the 'lint on-the-fly', however it doesn't tell me what and where I got wrong. How to fix it ? thanks

ghost avatar May 14 '18 06:05 ghost

From the warning messages, it seems you're using clang rather than gcc

joaomlneto avatar Jul 05 '18 11:07 joaomlneto

Works on Mac for me when gcc is specified correctly in the GCC Executable Path in package settings. I believe this can be closed.

SmiVan avatar Oct 17 '18 18:10 SmiVan

Checkout this issue https://github.com/hebaishi/linter-gcc/issues/62

adriankarlen-old avatar Dec 19 '18 14:12 adriankarlen-old