Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Run Gnu compiler under VMWare?

1 view
Skip to first unread message
Message has been deleted

DeMarcus

unread,
Mar 10, 2010, 6:50:38 PM3/10/10
to
m...@privacy.net wrote:
> I'm an engineering student and taking C++ classes
>
> At school, we use Linux OS and the Gnu compiler
>
> Could I install VM Ware on my Windows desktop at home
> and install/run Linux and Gnu compiler under a VM so
> would be able to compile at home easily?

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

John H.

unread,
Mar 10, 2010, 7:08:12 PM3/10/10
to
m...@privacy.net wrote:
> At school, we use Linux OS and the Gnu compiler
> Could my Windows desktop be able to compile at home easily?

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/

Stuart Golodetz

unread,
Mar 11, 2010, 12:14:36 PM3/11/10
to
m...@privacy.net wrote:
> I'm an engineering student and taking C++ classes
>
> At school, we use Linux OS and the Gnu compiler
>
> Could I install VM Ware on my Windows desktop at home
> and install/run Linux and Gnu compiler under a VM so
> would be able to compile at home easily?

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.

Message has been deleted
Message has been deleted

Paavo Helde

unread,
Mar 11, 2010, 2:36:52 PM3/11/10
to
m...@privacy.net wrote in news:k2eip55tmgh12evdk...@4ax.com:

> 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


Michael Tsang

unread,
Mar 11, 2010, 11:11:01 PM3/11/10
to
m...@privacy.net wrote:

> 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

Jorgen Grahn

unread,
Mar 13, 2010, 2:26:31 AM3/13/10
to

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 .

0 new messages