How to install c++ on Windows | |
Hi,
I am having some problems while installing c++ on Windows.
I have tried with http://www.mingw.org
in order to use g++ in my system.
The main problem is that the g++ over the command line doesn't find the
libraries as
stdio.h
can you help me?
thanks a lot,
MArcelo | | | | re: How to install c++ on Windows
Marcelo wrote:[color=blue]
> Hi,
>
> I am having some problems while installing c++ on Windows.
> I have tried with
> http://www.mingw.org[/color]
This group is about C++ _language_, not about it's compilers and
implementations so this is off-topic
But,
1. you might want to get devcpp (google, first link) it contains mingw
(easy to install) and it provides IDE (with editor and so on)
2. in free time, why not get a real operating system that includes g++
compiler by default - go to https://shipit.ubuntu.com/ and you will
redive 100% free (even without costs of transport) a CD (or serveral of
them - give to friends) with linux (ubuntu distribution). It is quite
easy to use by newbies. Although this IS an operating system, so
installing it requires time and free hard disc partition or better yet a
separate hard disc. | | | | re: How to install c++ on Windows
Rafał Maj Raf256 sade:[color=blue]
> Marcelo wrote:[color=green]
>> Hi,
>>
>> I am having some problems while installing c++ on Windows.
>> I have tried with
>> http://www.mingw.org[/color]
>
> This group is about C++ _language_, not about it's compilers and
> implementations so this is off-topic
>
> But,
>
> 1. you might want to get devcpp (google, first link) it contains mingw
> (easy to install) and it provides IDE (with editor and so on)
>
> 2. in free time, why not get a real operating system that includes g++
> compiler by default - go to https://shipit.ubuntu.com/ and you will
> redive 100% free (even without costs of transport) a CD (or serveral of
> them - give to friends) with linux (ubuntu distribution). It is quite
> easy to use by newbies. Although this IS an operating system, so
> installing it requires time and free hard disc partition or better yet a
> separate hard disc.[/color]
Oh god, I hate blunt ignorant os advocacy. That obnoxious comment
doesn't actually help the OP if it's windows he wants to develop on.
Please leave out item 2 in future posts, this is not
comp.os.linux.advocacy.
--
TB @ SWEDEN | | | | re: How to install c++ on Windows
On Sun, 22 Jan 2006 12:26:15 +0100, Marcelo <mache_1999@hotmail.com>
wrote:[color=blue]
>I am having some problems while installing c++ on Windows.
>I have tried with http://www.mingw.org
>in order to use g++ in my system.
>The main problem is that the g++ over the command line doesn't find the
>libraries as stdio.h
>
>can you help me?[/color]
MingW has a confusing distribution system. If you are a beginner you
may look at MinGW Developer Studio (simple VC++6-like IDE + MingW g++
3.4.2).
Best wishes,
Roland Pibinger | | | | re: How to install c++ on Windows
Look at http://www.sgi.com/tech/stl/ where you can download the STL library
and stdlib also (so, stdio.h). try the link : IOstreams
library(experimental). (why experimental, I don't know ...)
Don't forget when you compile to indicate g++ the paths of the include
directories (using -I"/include/directory") and the lib directory.
But it would be easier to use dev-cpp, or Visual C++ Express edition (which
is free, you just havec to register with an passport / hotmail e-mail
account) : http://msdn.microsoft.com/vstudio/express/visualc/. | | | | re: How to install c++ on Windows
TB wrote:
[color=blue]
> Please leave out item 2 in future posts, this is not
> comp.os.linux.advocacy.[/color]
Threfore I dont write WHY linux IS better, only suggested an option to
get a nice c++ compiler built into the system. | | | | re: How to install c++ on Windows
You can download a alternatic++-Compiler an http://www.bloodshed.net.
This makes no problem by Installing on Windows! | | | | re: How to install c++ on Windows
"Rafal Maj Raf256" <use.www.to.contact.me@raf256.com.invalid> wrote in
message news:dr08kp$odu$1@inews.gazeta.pl[color=blue]
> TB wrote:
>[color=green]
>> Please leave out item 2 in future posts, this is not
>> comp.os.linux.advocacy.[/color]
>
> Threfore I dont write WHY linux IS better, only suggested an option to
> get a nice c++ compiler built into the system.[/color]
The OP asked about installing a compiler for Windows. You advised him to
install Linux ("a real operating system"). There could hardly be a clearer
case of gratuitous Linux advocacy.
--
John Carson | | | | re: How to install c++ on Windows
I know, it's the devil-company, but if you want a windows-c++ compiler
I recommend
the new VC++ Express Edition from MS. http://msdn.microsoft.com/vstudio/express/visualc/
It's for free totay and this is, sorry, a real good compiler. | | | | re: How to install c++ on Windows
Rafal Maj Raf256 wrote:[color=blue]
> TB wrote:
>[color=green]
> > Please leave out item 2 in future posts, this is not
> > comp.os.linux.advocacy.[/color]
>
> Threfore I dont write WHY linux IS better, only suggested an option to[/color]
haha, bias detected. A more politically correct statement: "_Threfore_
I dont write WHY linux IS better or worse" | | | | re: How to install c++ on Windows
C.B. wrote:[color=blue]
> Look at http://www.sgi.com/tech/stl/ where you can download the STL library
> and stdlib also (so, stdio.h). try the link : IOstreams
> library(experimental). (why experimental, I don't know ...)
>
> Don't forget when you compile to indicate g++ the paths of the include
> directories (using -I"/include/directory") and the lib directory.
>
> But it would be easier to use dev-cpp, or Visual C++ Express edition (which
> is free, you just havec to register with an passport / hotmail e-mail
> account) : http://msdn.microsoft.com/vstudio/express/visualc/.[/color]
I used the free command line tools. A year or two ago I read that
Borland was the most standard conforming compiler (not sure if it is
still true or not). Aside from standard C++, windows programming is
more hardcore with Borland than it is with dev studio so if you wanna
become a windows geek you should use it :) Check it out: http://www.borland.com/downloads/download_cbuilder.html | | | | re: How to install c++ on Windows
Shark wrote:
[ ... ]
[color=blue]
> I used the free command line tools. A year or two ago I read that
> Borland was the most standard conforming compiler (not sure if it is
> still true or not).[/color]
It wasn't true a year ago, and it still isn't. I'm reasonably certain
the closest to perfect conformance is from the Comeau compiler. Intel's
compiler is also very close (and, not coincidentally, based on the same
front-end).
The OP hasn't said whether he's only interested in free tools -- both
Comeau and Intel cost money (though Comeau is quite inexpensive).
Incidentally, Comeau's compiler is purely a front-end, so you need some
other compiler to generate code -- but all the usual compilers for
Windows qualify. For free tools, the Borland ones aren't bad. Then
again, I think Microsoft's free tools are better -- while Microsoft had
serious conformance issues for a while, those are mostly a thing of the
past. IME, the Microsoft compiler generally has better optimization as
well (though I suppose that's only borderline topical). As has been
mentioned elsethread, there are several different distributions of gcc
for Windows, but the Bloodshed IDE is almost certainly the easiest to
get installed and operational.
--
Later,
Jerry. | | | | re: How to install c++ on Windows
I suggest you check out : http://codeblocks.org/
They are still on RC2, but i guess most Devcpp users will move to
codeblocks as soon as 1.0 is out. | | | | re: How to install c++ on Windows
I use Visual Studio and I think if you'll want to become a good
developer, its really recommended to get Visual Studio. For starting
you can use a Compiler liek g++ or DevC++. | | | | re: How to install c++ on Windows
TB wrote:
[color=blue]
> Oh god, I hate blunt ignorant os advocacy. That obnoxious comment
> doesn't actually help the OP if it's windows he wants to develop on.
> Please leave out item 2 in future posts, this is not
> comp.os.linux.advocacy.
>[/color]
That obnoxious comment doesn't help the OP either. Your post is
totally off topic. This isn't alt.flame. | | | | re: How to install c++ on Windows roberts.noah@gmail.com wrote:[color=blue]
> TB wrote:
>[color=green]
>> Oh god, I hate blunt ignorant os advocacy. That obnoxious comment
>> doesn't actually help the OP if it's windows he wants to develop on.
>> Please leave out item 2 in future posts, this is not
>> comp.os.linux.advocacy.
>>[/color]
>
> That obnoxious comment doesn't help the OP either. Your post is
> totally off topic. This isn't alt.flame.[/color]
and so on... ad infinitum.
Probably best to leave it at that.
Ben Pope
--
I'm not just a number. To many, I'm known as a string... | | | | re: How to install c++ on Windows
Jerry Coffin wrote:
[color=blue]
> Incidentally, Comeau's compiler is purely a front-end, so you need some
> other compiler to generate code -- but all the usual compilers for
> Windows qualify.[/color]
What do you mean by "Comeau's compiler is purely a front-end" ? For me a
front-end is like a GUI or something. A compiler produces code, or it isn't
a compiler, is it ? | | | | re: How to install c++ on Windows
C.B. wrote:[color=blue]
> Jerry Coffin wrote:
>
>[color=green]
>>Incidentally, Comeau's compiler is purely a front-end, so you need some
>>other compiler to generate code -- but all the usual compilers for
>>Windows qualify.[/color]
>
>
> What do you mean by "Comeau's compiler is purely a front-end" ? For me a
> front-end is like a GUI or something. A compiler produces code, or it isn't
> a compiler, is it ?[/color]
It can produce something (which could be C) for a back end to turn into
assembler. Most compilers use at least two parts, a platform
independent front end and a platform (but not necessarily language)
specific back end.
The first C++ compilers where front ends (cfront) to C compilers.
--
Ian Collins. | | | | re: How to install c++ on Windows
Marcelo wrote:[color=blue]
> Hi,
>
> I am having some problems while installing c++ on Windows.
> I have tried with
> http://www.mingw.org
>
> in order to use g++ in my system.
> The main problem is that the g++ over the command line doesn't find the
> libraries as
> stdio.h
>
> can you help me?
>
> thanks a lot,
>
> MArcelo[/color]
Try using Dev-Cpp ( http://www.bloodshed.net/devcpp.html). It's an IDE
that uses MinGW/GCC as it's compiler and should work right out of the
box. If you really want to use C++ from the command line try using the
-I parameter to include the folder that the standard library headers are
in. Something like:
$ g++ -I/usr/include hw.cpp -o hw
Substituting /usr/include for the standard header path on your Windows
system. Once you get it working you can dump it all into a make file.
Regards | | | | re: How to install c++ on Windows
C.B. wrote:[color=blue]
> Jerry Coffin wrote:
>[color=green]
> > Incidentally, Comeau's compiler is purely a front-end, so you need some
> > other compiler to generate code -- but all the usual compilers for
> > Windows qualify.[/color]
>
> What do you mean by "Comeau's compiler is purely a front-end" ? For me a
> front-end is like a GUI or something. A compiler produces code, or it isn't
> a compiler, is it ?[/color]
Sorry for not being clear. His compiler produces C source code as its
output. This code is then fed to some other compiler of your choice to
produce the final executable.
Other than compile times being a bit on the slow side, in normal use
this is all transparent though -- you invoke his compiler, and out
comes an executable.
To be entirely complete, I should also mention that calling it purely a
front-end isn't entirely accurate either -- along with the front-end
part, at least in the Windows version, he also includes a pre-linker
program that's decidedly a back-end sort of thing. Again, use is
transparent though -- other than the ocassional message from it telling
you about what it's done.
--
Later,
Jerry. | | | | re: How to install c++ on Windows
eiji wrote:[color=blue]
> I know, it's the devil-company, but if you want a windows-c++ compiler
> I recommend
> the new VC++ Express Edition from MS.
>
> http://msdn.microsoft.com/vstudio/express/visualc/
>
> It's for free totay and this is, sorry, a real good compiler.
>[/color]
Don't use this. Use The Bloodshed DevCpp. Thats Simple. More difficult,
but also interesting is Eclipse with CDT Plugin and Cygwin.
There may be sometimes reasons to use M$ Visual, but don't use it if you
have the choice. It may be real, but it is far from good and it is not
C++ compiler. It just compiles something sometimes similar to C++.
Gabriel
--
Who is General Failure and why is he reading my hard disk? | | | | re: How to install c++ on Windows
Gabriel wrote:[color=blue]
> eiji wrote:[color=green]
>> I know, it's the devil-company, but if you want a windows-c++ compiler
>> I recommend
>> the new VC++ Express Edition from MS.
>>
>> http://msdn.microsoft.com/vstudio/express/visualc/
>>
>> It's for free totay and this is, sorry, a real good compiler.
>>[/color]
>
> Don't use this. Use The Bloodshed DevCpp. Thats Simple. More difficult,
> but also interesting is Eclipse with CDT Plugin and Cygwin.
>
> There may be sometimes reasons to use M$ Visual, but don't use it if you
> have the choice. It may be real, but it is far from good and it is not
> C++ compiler. It just compiles something sometimes similar to C++.[/color]
I was under the impression that the compiler that comes with VC8 is one
of the most conformant out there, what specific problems does it have?
Ben Pope
--
I'm not just a number. To many, I'm known as a string... | | | | re: How to install c++ on Windows
"Gabriel" <abuse@127.0.0.1> wrote in message
news:newscache$znknti$ek4$1@svr01squid.pfa.researc h.philips.com[color=blue]
> eiji wrote:[color=green]
>> I know, it's the devil-company, but if you want a windows-c++
>> compiler I recommend
>> the new VC++ Express Edition from MS.
>>
>> http://msdn.microsoft.com/vstudio/express/visualc/
>>
>> It's for free totay and this is, sorry, a real good compiler.
>>[/color]
>
> Don't use this. Use The Bloodshed DevCpp. Thats Simple. More
> difficult, but also interesting is Eclipse with CDT Plugin and Cygwin.
>
> There may be sometimes reasons to use M$ Visual, but don't use it if
> you have the choice. It may be real, but it is far from good and it
> is not C++ compiler. It just compiles something sometimes similar to
> C++.[/color]
Rubbish. It is a very good C++ compiler with a very good IDE. It is not as
standards comformant as Comeau, of course, but neither is Bloodshed DevCpp.
--
John Carson | | | | re: How to install c++ on Windows
On Wed, 25 Jan 2006 15:38:23 +0100, Gabriel <abuse@127.0.0.1> wrote:
[color=blue]
>Don't use this. Use The Bloodshed DevCpp. Thats Simple. More difficult,
>but also interesting is Eclipse with CDT Plugin and Cygwin.[/color]
Do you know how conformant Bloodshed is? Also what version of gcc it
is using? I guess I'll wend my way to their website and see as well,
but advice from someone who uses it can be invaluable for saving time.
TIA
"Time is a most precious asset." |  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,471 network members.
|