Comments (42)
To me, I believe. I'm writing a guide for windows users now.
from linter-gcc.
@hebaishi Hello, I tried: C:\MinGW\bin\g++, but it still not work.
from linter-gcc.
I had the same problem even though I had gcc in $PATH (it was working from cmd) and executable path from settings was "C:\MinGW\bin\g++" as written on the Wiki. However, trying the suggestion here and setting it to "C:\MinGW\bin\g++.exe" solved my problem. I think you should update your Wiki accordingly as it suggests the complete opposite right now.
from linter-gcc.
Hey, i just installed platformIO atom IDE and just got the same problem, Would be happy if you would share solution if you found one :)
from linter-gcc.
The issue here was probably that gcc wasn't installed. Please read the wiki and follow the steps there.
from linter-gcc.
Hello. Is it working for you now?
from linter-gcc.
Im trying a reinstall right now, im on windows and having a few problems.
My goal is first to compile and run c++ files and second is to get linter
to work.
The wiki says something about gcc version 6.0, seems i have an much older
version, 2.91.57. Does cygwin install the latest?
Im using the gpp-compiler package to compile my c++ files but i get an
error that "start" could not be spawned and be added to path but i have no
clue what "start" is, g++ is in the path and working, i get a compiled file.
Thanks for the help!
On Wed, Feb 24, 2016 at 12:34 PM, Husam Hebaishi [email protected]
wrote:
Hello. Is it working for you now?
—
Reply to this email directly or view it on GitHub
#29 (comment).
from linter-gcc.
You mis-read the wiki. The wiki says that versions 0.6.0 -> 0.6.5 of linter-gcc
are missing a feature (the automatic installation of the base linter package), but I assume you have installed the latest version of linter-gcc
which means you shouldn't have this problem. What you need to do is setup g++
on cygwin so that g++
is in your $PATH
so that the command g++ --version
works in the terminal.
from linter-gcc.
Please see this guide on how to install gcc/g++ on Cygwin.
from linter-gcc.
I've gotten that to work, g++ is in the path and i can use g++ in cmd
from linter-gcc.
Ok. Now all your need to do is specify g++
as your executable path in the linter-gcc
configuration settings and it should just work.
from linter-gcc.
Do i do that in the config.js file for linter-gcc? I Couldn't find anything about specifying path in the settings.
from linter-gcc.
No. In atom, you click Packages > Settings View > Open. Then click Packages on the left hand panel, and type linter-gcc
into the filter box. Click Settings it to get to the configuration settings.
from linter-gcc.
It seems you are unfamiliar with atom. I suggest you read the Atom Flight Manual here to get more familiar with the interface.
from linter-gcc.
Yes, i first found out about it a few days ago, thanks alot! 👍
from linter-gcc.
Is linter-gcc working for you?
from linter-gcc.
No i get the error,
"linter-gcc: Executable not found"
"C:\MinGW\bin" not found
and
Uncaught TypeError: Cannot read property 'binary' of undefined
/C:/Users/Andreas/.atom/packages/linter-gcc/lib/main.js:72
from linter-gcc.
The binary you have entered is still incorrect. You need to enter g++
into the linter-gcc configuration settings page (in the GCC Executable Path), NOT C:\MinGW\bin
. The full path (I'm assuming it's C:\MinGW\bin\g++
) will not work because g++ needs to know where to find its header files. It has to be in your path for this whole thing to work.
from linter-gcc.
Ah thank you, now i no longer get the error! But seems i forgot to install clang... Thanks alot for helping me and explaining in a way i understand :)
from linter-gcc.
Clang is a different compiler from g++. Does linting C/C++ code work for you now?
from linter-gcc.
Yeah it works now!
from linter-gcc.
I'm also having this problem. I tried C:\MinGW\bin\g++.exe
and the error goes away but it doesn't do any "Lint"ing
from linter-gcc.
thanks for the guidence! I’ve fixed it.
from linter-gcc.
Sometimes this error occurs when storing/using/writing the same project from different OS-platforms to the same folder (e.g. on cloud ...)
Uncaught TypeError: Cannot read property 'binary' of undefined
At /usr/share/atom/resources/app.asar/src/pane.js:1002
TypeError: Cannot read property 'binary' of undefined
If this is your issue, you need to re-init your project from the 'platformio' menu.
from linter-gcc.
Sir, can you make a tutorial out to fix this error & post it in youtube ?
from linter-gcc.
To whom was this replay/question directed?
from linter-gcc.
Anyone who is willing to help.A tutorial from installing ,integrating gcc & compiling+running a c++ program will be very helpful.
from linter-gcc.
Sir, I am stuck up here - https://www.quora.com/How-do-I-integrate-GCC-with-Atom-to-compile-C++-code
Also I went to package>settings & under GCC path - gave g++ but nuthing works.Help from here is welcome.I am a beginner, so I might have made mistakes.please look in the description of quora.
from linter-gcc.
You have done the right thing and added g++
to your PATH. You just need to set your linter-gcc executable path to g++.exe
and it should work.
from linter-gcc.
Sir, I dont understand.What does the error means ?
from linter-gcc.
You are using the wrong header files. conio.h
is a C header, and in C++ to use cin
and cout
, you #include <iostream>
.
Your code looks like C++ code, so delete the conio include, and change the iostream include to #include <iostream>
.
Please read this article on header files.
from linter-gcc.
Ok,Thank You Sir.
I got to update myself,I was trying to code what I learned in school days in Turbo C++.
from linter-gcc.
Hi,i was getting this error beacuse i used bash to install gcc, i found the file in this directory: C:\Users\Daniel\AppData\Local\lxss\rootfs\usr\bin\g++
and changed in the settings
Im not gettign error #29 anymore but its still not linting, i did add the same directory to the $PATH
I do have the base linter installed
from linter-gcc.
@hebaishi I have gotten the g++ compiler through minGW and can compile it from the terminal, so its added to my PATH and I have my GCC Executable Path set to "g++.exe" but it still won't work?
from linter-gcc.
The wiki contains a guide for windows users. Please follow the instructions in the guide.
from linter-gcc.
Yes, I've done all of that and it still wont work.
from linter-gcc.
C:\MinGW\bin\g++.exe
Settings -> Packages -> linter-gcc -> Settings -> GCC Executable Path -> C:\MinGW\bin\g++.exe
from linter-gcc.
Maybe a stupid question :
I am setting up an environment to code in C / C++ and I am using linux bash in windows 10. I work with Atom and platformio-ide-terminal which open my bash terminal. In this terminal, I've installed build-essentials so I am able to run gcc
on my linux (via windows).
But how can I tell lintner-gcc to use this gcc ?
I am replying to this issue because the error is the same. Sorry if this is the wrong place.
from linter-gcc.
Just a tip:
If you had g++ installed and added to path and still having problems with linter-gcc (i had a weird issue on save), just go to Platform.io menu and update the project folder.
This solved the save issue for me.
from linter-gcc.
I realize this is a very vague comment, however I wanted to post in case someone having this issue is using Linter-GCC with Platform IO/Atom. On a fresh PIO/Atom install I continually had this issue until I ran 'BUILD' on a project for the first time. Atom/PIO downloaded some additional files and when built Linter-GCC ran fine thereafter.
from linter-gcc.
i did found a solution and it's rewrite the GCC Executable Path, in my case for example it will be C:\MinGW\bin/gcc.exe, So it really fixed my problem.
from linter-gcc.
Mine did not work on mac as well... and i've installed my gcc using home-brew at /usr/local/Cellar/gcc/
from linter-gcc.
Related Issues (20)
- Linter isn't showing issues (c/c++) HOT 2
- it stops working since the 1.34.0 atom update HOT 2
- Uncaught TypeError: _this.notificationEl.querySelector is not a function HOT 2
- linter-gcc doesn't work HOT 4
- consider this project dead if this issue is not removed (latest commit was on 2017 jan) HOT 3
- Uncaught TypeError: _this.notificationEl.querySelector is not a function HOT 2
- Uncaught TypeError: _this.notificationEl.querySelector is not a function HOT 2
- Uncaught TypeError: _this.notificationEl.querySelector is not a function HOT 1
- Uncaught TypeError: _this.notificationEl.querySelector is not a function HOT 1
- Uncaught TypeError: _this.notificationEl.querySelector is not a function HOT 1
- Uncaught TypeError: _this.notificationEl.querySelector is not a function HOT 1
- Uncaught TypeError: _this.notificationEl.querySelector is not a function HOT 1
- Object.dirname is deprecated.
- Uncaught TypeError: Cannot read property 'binary' of undefined
- Relative paths are relative to Atom's $PWD, not the project root
- string variables not highlighted
- Colors in the linter panel
- I cant install atom linter gcc.its shows"npm WARN deprecated [email protected]: No longer maintained - Use lodash probably npm ERR! Unexpected end of JSON input while parsing near '...MGZNbL9YcGBJl4MH4nrxH' npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\stark siv\.atom\.apm\_logs\2020-12-26T17_25_37_936Z-debug.log" A little help is appreciated,♥ HOT 2
- Just want my GCH address for open sea? HOT 1
- Cannot find module 'tempfile'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linter-gcc.