Giter VIP home page Giter VIP logo

Comments (42)

hebaishi avatar hebaishi commented on July 17, 2024 3

To me, I believe. I'm writing a guide for windows users now.

from linter-gcc.

quantumlaser avatar quantumlaser commented on July 17, 2024 2

@hebaishi Hello, I tried: C:\MinGW\bin\g++, but it still not work.

from linter-gcc.

bdemirel avatar bdemirel commented on July 17, 2024 1

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.

Skosulor avatar Skosulor commented on July 17, 2024

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.

hebaishi avatar hebaishi commented on July 17, 2024

The issue here was probably that gcc wasn't installed. Please read the wiki and follow the steps there.

from linter-gcc.

hebaishi avatar hebaishi commented on July 17, 2024

Hello. Is it working for you now?

from linter-gcc.

Skosulor avatar Skosulor commented on July 17, 2024

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.

hebaishi avatar hebaishi commented on July 17, 2024

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.

hebaishi avatar hebaishi commented on July 17, 2024

Please see this guide on how to install gcc/g++ on Cygwin.

from linter-gcc.

Skosulor avatar Skosulor commented on July 17, 2024

I've gotten that to work, g++ is in the path and i can use g++ in cmd

from linter-gcc.

hebaishi avatar hebaishi commented on July 17, 2024

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.

Skosulor avatar Skosulor commented on July 17, 2024

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.

hebaishi avatar hebaishi commented on July 17, 2024

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.

hebaishi avatar hebaishi commented on July 17, 2024

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.

Skosulor avatar Skosulor commented on July 17, 2024

Yes, i first found out about it a few days ago, thanks alot! 👍

from linter-gcc.

hebaishi avatar hebaishi commented on July 17, 2024

Is linter-gcc working for you?

from linter-gcc.

Skosulor avatar Skosulor commented on July 17, 2024

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.

hebaishi avatar hebaishi commented on July 17, 2024

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.

Skosulor avatar Skosulor commented on July 17, 2024

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.

hebaishi avatar hebaishi commented on July 17, 2024

Clang is a different compiler from g++. Does linting C/C++ code work for you now?

from linter-gcc.

Skosulor avatar Skosulor commented on July 17, 2024

Yeah it works now!

from linter-gcc.

jordanlhunt avatar jordanlhunt commented on July 17, 2024

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.

heyxiaosong avatar heyxiaosong commented on July 17, 2024

thanks for the guidence! I’ve fixed it.

from linter-gcc.

HanKooR avatar HanKooR commented on July 17, 2024

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.

florist-notes avatar florist-notes commented on July 17, 2024

Sir, can you make a tutorial out to fix this error & post it in youtube ?

from linter-gcc.

HanKooR avatar HanKooR commented on July 17, 2024

To whom was this replay/question directed?

from linter-gcc.

florist-notes avatar florist-notes commented on July 17, 2024

Anyone who is willing to help.A tutorial from installing ,integrating gcc & compiling+running a c++ program will be very helpful.

from linter-gcc.

florist-notes avatar florist-notes commented on July 17, 2024

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.

hebaishi avatar hebaishi commented on July 17, 2024

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.

florist-notes avatar florist-notes commented on July 17, 2024

capture1
capture2

Sir, I dont understand.What does the error means ?

from linter-gcc.

hebaishi avatar hebaishi commented on July 17, 2024

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.

florist-notes avatar florist-notes commented on July 17, 2024

Ok,Thank You Sir.
I got to update myself,I was trying to code what I learned in school days in Turbo C++.

Works Now Thanks.
eee

from linter-gcc.

dcharua avatar dcharua commented on July 17, 2024

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++
image 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
image

I do have the base linter installed

from linter-gcc.

AlgorithmEnigma avatar AlgorithmEnigma commented on July 17, 2024

@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?

screenshot 1

from linter-gcc.

hebaishi avatar hebaishi commented on July 17, 2024

The wiki contains a guide for windows users. Please follow the instructions in the guide.

from linter-gcc.

AlgorithmEnigma avatar AlgorithmEnigma commented on July 17, 2024

Yes, I've done all of that and it still wont work.

from linter-gcc.

shaiksuraz avatar shaiksuraz commented on July 17, 2024

C:\MinGW\bin\g++.exe

Settings -> Packages -> linter-gcc -> Settings -> GCC Executable Path -> C:\MinGW\bin\g++.exe

from linter-gcc.

mildful avatar mildful commented on July 17, 2024

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.

jalexandre0 avatar jalexandre0 commented on July 17, 2024

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.

sn34ks avatar sn34ks commented on July 17, 2024

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.

erazoandres avatar erazoandres commented on July 17, 2024

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.
image

from linter-gcc.

hck94829 avatar hck94829 commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.