Gnome
Executive Member
- Joined
- Sep 19, 2005
- Messages
- 7,208
Thanks man, of course I should set up Linux first?
Ah crap, on my post above I wrote GCC when I meant Cygwin. Let me start over!
This works on Windows! Basically you install Cygwin which is a Unix environment for Windows and also contains GCC (Gnu Compiler Collection), among other this includes G++ (GNU c++ compiler). This compiler is IDENTICAL to that used in Linux.
Therefore you have the option of coding in Windows yet your code will compile in Linux.
Eclipse C++ is a IDE (Integrated Development Environment) which ties in VERY well with Cygwin. It supports step-through debugging, variable inspection, stack trace, etc. What this means is you write a program in the IDE (looks like a powerful text editor
Once it compiles if add a break-point in your application (you click next to a line of code, this adds a little blue dot next to it) and click start debugging the application will run UNTIL it gets to that break point, at that time it will pause running the application and show you what each variables values are, what's going on with the Stack/Heap. You can then step through EACH line of code, line by line using F5 (step into) and F6 (step over), each time the variables will change as the program progresses.
This allows you to see wtf is happening and it's invaluable, without it she won't make BIT. Even if code compiles that doesn't mean it'll run as you expect.
On Linux itself I'm not 100% sure what they use because I don't use the Informatorium, I do know however Eclipse C++ is NOT installed on the Tuks Linux PC's. I'll ask some of the ppl what they suggest for Linux @ Tuks.
Last but not least even though Eclipse C++ isn't available on Campus that doesn't mean it's not invaluable when working on your programs from home because they'll compile just like that when you take it back to campus and run it on Linux.
Eclipse C++ is available here: http://www.eclipse.org/cdt/
I have it also if you don't want to download.
Cygwin is available here: http://www.cygwin.com/
But there is a older version available on ftp.cs.up.ac.za, that FTP is ONLY available ON campus. It's got quite the directory structure but the file is there somewhere, Cygwin.zip