My professor mentioned using GCC to write our code for a project, its not mandatory but was recommended. Where do I go to download this program, and is there anything else besides GCC that I need in order to write, test, and compile my code?
Five answers:
I have 0 characters to work with
2012-01-26 10:34:37 UTC
A few quick things:
GCC is just a compiler. Visual studio is an IDE. For GCC, you will need to use a text editor like notepad++ to write the code, then compile at a command prompt. If you want a similar experience to what you are used to in VS, look into using Eclipse.
If you are compiling the code on Windows and submitting an executable to be graded on a linux system, you need to "cross-compile" the code. (if you are submitting code which they will compile it won't really be a problem for the basic programming you are doing as the code will compile and run 99.9% the same on Windows and Linux) Essentially, compilers create code for a specific system, however, they can compile code for a system different than the one they are running on. GCC will have all of these options. However, to simplify all of this (and it would be good practice if you are starting a CpE or CS degree), I suggest you learn linux. You can easily run it in a virtual machine. I use VMWare player. This will let you run a linux system on your windows machine quickly and easily without the hassle of setting up a dual boot. I also suggest using Ubuntu, and as it is Linux, it is free. Google is definitely your friend here.
Good luck and sorry if I got confusing
2012-01-26 09:56:36 UTC
GCC is short for the GNU Compiler Collection. It is just a compiler, not an IDE (meaning you compile your code from the command line). If you aren't using Linux or some form of BSD, there is no reason to use GCC. If you are going to be using Linux or BSD, the instructions on how to install it (if it isn't there already) depends on what variant you are using.
Rainmaker
2012-01-26 09:54:17 UTC
GCC is the GNU Compiler Collection.
You will obviously need libraries and header files for whatever language you are writing code in.
You can create make files, compile from the command line, or check to see if your IDE supports gcc.
?
2012-01-26 11:06:57 UTC
The simplest way to get gcc on windows is to run cygwin, but take time to pick the right packages on the installation:
http://cygwin.org/
Do the full developer installation, it will install gcc and some other fun tools. Search for grep, awk, and sed, and make sure they're checked when you install - these are some other fun unix-y tools.
I usually edit my source in either emacs in a console window or in notepad++ outside of cygwin.
Also, I prefer the mintty console over cygwin's default - search for that in the installation too.
?
2016-10-04 10:33:35 UTC
hi, stable to work out you desperate to objective Linux. :D be beneficial which you're matching the case given interior the command. Xorg-Dev isn't comparable to xorg-dev and this may be the reason. otherwise do `apt-cache seek xorg` and see what comes up. examine the Synaptic equipment supervisor in device: administration. this may be a GUI for apt-get and could be slightly much less perplexing to paintings with. be sure that each and every physique repositories are enabled in alternatives for terrific equipment availability. seek for xorg, returned. till now any of that, nevertheless, it must be terrific to seek for pyFLTK or FLTK in Synaptic because it relatively is going to handle dependencies for you and you will not could pass working around monitoring all of them down.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.