Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

linter-gcc doesn't work #206

Closed
mroghani opened this issue Jul 2, 2019 · 4 comments
Closed

linter-gcc doesn't work #206

mroghani opened this issue Jul 2, 2019 · 4 comments

Comments

@mroghani
Copy link

mroghani commented Jul 2, 2019

Checklist

gcc version:

gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

installed packages:

  • linter 2.3.0
  • linter-gcc 0.7.1
  • linter-ui-default 1.7.1
  • busy-signal 2.0.1
  • intentions 1.1.5

output of " /usr/bin/gcc -c -Wall -fmax-errors=0 Documents/cf/main.cpp " in terminal :

Documents/cf/main.cpp: In function ‘int main()’:
Documents/cf/main.cpp:57:5: error: expected ‘;’ before ‘cout’
cout<<n<<endl;
^~~~

@dot-tb
Copy link

dot-tb commented Jul 2, 2019

No, it doesn't : linter-gcc2

@mroghani
Copy link
Author

mroghani commented Jul 2, 2019

linter-gcc2's lint-on-fly doesn't work to!

@dot-tb
Copy link

dot-tb commented Oct 29, 2019

Well, probably useless to answer now, but looks like you're trying to specify the path of your GCC executable without specifying that it is indeed an executable, you should either add GCC's bin folder in your PATH or write "/usr/bin/gcc.exe" in your linter settings.
Also it looks like you're trying to compile CPP code with GCC's C compiler wich is bound to fail, use g++.exe instead of gcc.exe.

@Arcanemagus
Copy link
Member

Duplicate of #199

@Arcanemagus Arcanemagus marked this as a duplicate of #199 Dec 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants