Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does cmder come with GCC or not? #461

Closed
mpkarlo opened this issue Apr 29, 2015 · 10 comments
Closed

Does cmder come with GCC or not? #461

mpkarlo opened this issue Apr 29, 2015 · 10 comments

Comments

@mpkarlo
Copy link

mpkarlo commented Apr 29, 2015

I was trying out some C++ development and decided to give GCC a shot since I remembered it being included in MSysGit which was itself included in Cmder. But I can't seem to invoke the compiler. I get the not a recognized command message.

Is it included in the version of MSysGit that Cmder uses? Maybe it's not aliased or something? I'm not super familiar with command line (part of the reason I was doing this), so I could be missing something.

@MartiUK
Copy link
Member

MartiUK commented Apr 29, 2015

You may be confusing msys, a part of mingw with msysgit, msysgit only contains enough of the msys utilities to allow git to function correctly on windows. If you want to get gcc working, I suggest installing mingw and see how that goes, you may need to mess around with your PATH env variable but it should work as soon as you install it, like if you were using standard cmd.

@mpkarlo
Copy link
Author

mpkarlo commented Apr 29, 2015

Hmm, but the Git for Windows page says that msysgit comes with all the tools necessary to build Git on a Windows machine, notably, a port of the GCC compiler. I tried looking around the cmder directories, but I'm not sure. Does it come bundled with msysgit or just Git for Windows (without the compiler). I really just want the GCC compiler (or just a good C++ compiler, really) to be accessible through cmder. I'd rather avoid installing anything that alters my registry, PATH or anything else really.

@mpkarlo mpkarlo closed this as completed Apr 29, 2015
@mpkarlo mpkarlo reopened this Apr 29, 2015
@brendaw
Copy link

brendaw commented Apr 29, 2015

You don't understand. The parts of msysgit that bundles Cmder doesn't have the compilers and build things of MinGW that comes with the full msysgit. You only will have it when install the full msysgit from their website and adapt it to the Cmder (see here). After install, simply add the folder {msysgit_path}\wingw\bin in the PATH environment variable and voilà.

But I suggest you install CygWin or MinGW to develop C++ with Cmder. As you going developing, you will need a more complete solution and either of these two folks can handle it.

@mpkarlo
Copy link
Author

mpkarlo commented Apr 29, 2015

Thank you, that's what I was having doubts with. I thought Cmder had all of msysgit bundled with it, not just a subset of it.

I tried installing msysgit, but it runs on its own terminal window (MinGW). How would I install MinGW and then configure Cmder add GCC to its path? I thought MinGW came with its own terminal? I really rather use Cmder, and not alter registry or PATH values if I can help it.

@brendaw
Copy link

brendaw commented Apr 29, 2015

In any case, just do the tips above that will be avaible the tools in the next time you run Cmder.

PS: That's what I poorly do with CygWin 😃

@mpkarlo
Copy link
Author

mpkarlo commented Apr 30, 2015

Well, I'm downloading mingw, to see if I can get it working with that. Should it be simply making the directory visible to the PATH used by cmder? Or does it take something more involved?

Thanks for all the help, by the way. When it comes to command line interfaces, I can sometimes tread along. I don't tend to deal with them too often, though, so I can become lost sometimes. Part of the reason I want to try C++ development from the command line.

@mpkarlo
Copy link
Author

mpkarlo commented Apr 30, 2015

I was able to do it with MinGW, compiled a simple HelloWorld, and now ready to go. Thanks for the help, everybody.

@mpkarlo mpkarlo closed this as completed Apr 30, 2015
@TheSarathChandra
Copy link

untitled
please help me with this! explain me what to do?

@daxgames
Copy link
Member

Cmder has the complete Git for Windows which does,not have the compilers. You probably want the Git for Windows SDK dowloadable here https://github.com/git-for-windows/build-extra/releases. It is easier to setup and deal with than mingw. Install it then you can integrate it into cmder.

@alwinaind
Copy link

Just download and install cygwin with all the packages you want, and copy all the files in the bin folder of cygwin, in the bin folder of cmder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants