473,385 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
Jan 22 '06 #1
24 16614
Marcelo wrote:
Hi,

I am having some problems while installing c++ on Windows.
I have tried with
http://www.mingw.org


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.
Jan 22 '06 #2
TB
Rafał Maj Raf256 sade:
Marcelo wrote:
Hi,

I am having some problems while installing c++ on Windows.
I have tried with
http://www.mingw.org


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.


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
Jan 22 '06 #3
On Sun, 22 Jan 2006 12:26:15 +0100, Marcelo <ma********@hotmail.com>
wrote:
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?


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
Jan 22 '06 #4
On Sun, 22 Jan 2006 12:49:15 GMT, rp*****@yahoo.com (Roland Pibinger)
wrote:

Forgot the link: http://www.parinyasoft.com/
Jan 22 '06 #5
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/.
Jan 22 '06 #6
TB wrote:
Please leave out item 2 in future posts, this is not
comp.os.linux.advocacy.


Threfore I dont write WHY linux IS better, only suggested an option to
get a nice c++ compiler built into the system.

Jan 22 '06 #7
You can download a alternatic++-Compiler an http://www.bloodshed.net.
This makes no problem by Installing on Windows!

Jan 22 '06 #8
"Rafal Maj Raf256" <us*******************@raf256.com.invalid> wrote in
message news:dr**********@inews.gazeta.pl
TB wrote:
Please leave out item 2 in future posts, this is not
comp.os.linux.advocacy.


Threfore I dont write WHY linux IS better, only suggested an option to
get a nice c++ compiler built into the system.

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
Jan 22 '06 #9
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.

Jan 22 '06 #10
Rafal Maj Raf256 wrote:
TB wrote:
Please leave out item 2 in future posts, this is not
comp.os.linux.advocacy.


Threfore I dont write WHY linux IS better, only suggested an option to


haha, bias detected. A more politically correct statement: "_Threfore_
I dont write WHY linux IS better or worse"

Jan 22 '06 #11
C.B. wrote:
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/.


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

Jan 22 '06 #12
Shark wrote:

[ ... ]
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).


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.

Jan 22 '06 #13
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.
Jan 23 '06 #14
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++.

Jan 23 '06 #15

TB wrote:
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.


That obnoxious comment doesn't help the OP either. Your post is
totally off topic. This isn't alt.flame.

Jan 23 '06 #16
ro**********@gmail.com wrote:
TB wrote:
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.


That obnoxious comment doesn't help the OP either. Your post is
totally off topic. This isn't alt.flame.


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...
Jan 23 '06 #17
Jerry Coffin wrote:
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.


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 ?
Jan 23 '06 #18
C.B. wrote:
Jerry Coffin wrote:

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.

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 ?


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.
Jan 23 '06 #19
Marcelo wrote:
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


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
Jan 24 '06 #20
C.B. wrote:
Jerry Coffin wrote:
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.


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 ?


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.

Jan 24 '06 #21
eiji wrote:
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.


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?
Jan 25 '06 #22
Gabriel wrote:
eiji wrote:
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.


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++.


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...
Jan 25 '06 #23
"Gabriel" <ab***@127.0.0.1> wrote in message
news:ne********************@svr01squid.pfa.researc h.philips.com
eiji wrote:
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.


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++.

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
Jan 25 '06 #24
On Wed, 25 Jan 2006 15:38:23 +0100, Gabriel <ab***@127.0.0.1> wrote:
Don't use this. Use The Bloodshed DevCpp. Thats Simple. More difficult,
but also interesting is Eclipse with CDT Plugin and Cygwin.


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."
Jan 25 '06 #25

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Richard Hanson | last post by:
Over the last few days, I reinstalled Win2kSP2 to a spare harddrive I had just swapped into my Fujitsu LifeBook P1120 (long story <wink>). Subsequently, I DL'ed the newest Python alpha (2.4a2), and...
2
by: Ralph | last post by:
I used to have Visual Basic .net std. 2003 installed on WinXP SP1A. But I found it too hard to upgrade WinXP to SP2. Now, I do have WinXP SP2 installed, but I am having problems installing...
1
by: Scott Chang | last post by:
Hi all, 1)I used Microsoft Visual C++.NET (2002) on my Windows Me and Windows XP Home Edition for the last one and half years. 4-5 weeks ago, I upgraded my PC from Windows XP Home Edition to...
3
by: Chad Smith | last post by:
Hi, I have created a .NET deployment project in Visual Studio 2003. I have specified an entry point into my own code in this installer which launches into the familiar: public override void...
3
by: Olav | last post by:
Hi all, I can not install CF 2.0 SP 1 on an Symbol PPT8800 running WinCE 4.2. The Install-Log say's cgacutil.exe failed with exit-code 80000004 and I get a messagebox indicating a support-Info...
2
by: stef | last post by:
hello, I'm still in the transition of going from MatLab to Scipy, and installed previous week a SciPy on a PC twice, through the new "Enstaller". It's a pitty that there will be no old...
2
by: =?Utf-8?B?Um9nZWxpbw==?= | last post by:
I know this has been answered, I just can't find it. can someone point me to a URL or thread that shows how to install a web service in a Windows Setup Project ? I need to install a windows app,...
9
by: gs | last post by:
the feedback for the install of c#2008 places 97 to 99% cpu load for way too long on athlon x64 3800+ PC. 3/4 an hour later its only about 80% complete, continuing with 98% CPU load! Next time...
6
by: globalrev | last post by:
type "python setup.py install" that is used in most "addons" for python. well using windows vista, where the h*** am i supposed to type this? if it is not doable in windows, what do i have...
3
by: =?Utf-8?B?S2VuIExlbWlldXg=?= | last post by:
My clickonce app fails when the install button on the publish.htm page is clicked. User is prompted with a "Cannot Start Application" dialog. Details provided from the dialog are: PLATFORM...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.