Just do it. I can recommend openSUSE.
www.opensuse.org
Make sure you install development tools during the installation of
Linux, then you have gcc to play around with.
/DeMarcus
You might look into the Cygwin project. It provides a Linux like
environment on Windows, including g++ (versions 3 and 4):
http://www.cygwin.com/
There is also the MinGW project which gives you g++ on a Windows:
http://www.mingw.org/
Yes :)
<OT>
For what it's worth, though, I've found Wubi to be a good alternative
(I've tried both, and VirtualBox as well) - might be something to check
out. It uses a Windows installer and basically installs a virtual
version of Ubuntu in a folder on your hard disk and adds an option at
boot time. You can then boot into Linux instead of Windows - getting a
system which in my experience mostly runs as fast as a proper install.
If you decide you don't like it, you can uninstall it again from
Windows. It's a low risk way to try Linux, but it still runs at a decent
speed and works properly. Just a thought...
</OT>
Either way, once you've got your Linux environment up and running, just
do something like "sudo apt-get install g++" (on Ubuntu, anyway) and
you'll be up and running.
Cheers,
Stu
P.S. If you're writing (reasonably sane) standard C++ (which you may or
may not be), you could also just use a Windows compiler to test your
code. Microsoft Visual C++ Express is free to download.
> Stuart Golodetz <sgol...@NdOiSaPlA.pMiPpLeExA.ScEom>
> wrote:
>
>>P.S. If you're writing (reasonably sane) standard C++ (which you may or
>>may not be), you could also just use a Windows compiler to test your
>>code. Microsoft Visual C++ Express is free to download.
>
> Yeah I thought abt that..... hmm..... but I've no
> experience with that compiler at all
>
> Is it "safe"? The code I write (baby programs).....
> must be submitted via Linux OS and must compile and run
> under G++.
>
> Is there any chance writing and testing at home on the
> MS VC++ will "break" anything? again I have no
> experience with it
There is a good chance that the code which you write in MSVC++ will not
compile with gcc, or has slightly different behavior. Also, MS has
declared most of POSIX functions "deprecated", which is quite annoying.
Also, there are so many different features, libraries, layers and options
present with MSVC++ that if you don't know exactly what you are doing,
you may easily get lost. Also, Windows has no support of UTF-8 locales,
which are the default in Linux.
On the other hand, MSVC++ has very nice debugger, which is extremely
helpful for finding out what some code is actually doing.
In short, if your goal is to produce Linux-only software, then using
MSVC++ for that will probably have an adverse effect.
hth
Paavo
> Stuart Golodetz <sgol...@NdOiSaPlA.pMiPpLeExA.ScEom>
> wrote:
>
>>Yes
>
>
> Ok great guys!!
>
> Sounds like many options for what I want to do
>
> I would go totally Linux but DO have windows app's I
> must use for engineering school as well
Run these app in Wine on Linux
On the third hand, Linux has valgrind. And does the free Microsoft
compiler come with the debugger?
> In short, if your goal is to produce Linux-only software, then using
> MSVC++ for that will probably have an adverse effect.
If he has the energy to set up both, I think that's a good thing.
Experience with different compilers cannot be a bad thing (as long as
they are good compilers).
But the biggest problem is probably the exercises themselves. We
don't know anything about them, but chances are they use Unix-specific
libraries or functionality. A pure C++ program can't do GUIs, TCP/IP
and stuff like that.
/Jorgen
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .