473,383 Members | 1,733 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,383 software developers and data experts.

Preferred C++ compiler for Windows

I have 15+ years of experience programming. 8 from the Unix C++ world,
and 7 in the Java (mainly windows) world. I can't get the following
program to create an executable in Microsoft Visual C++.

#include <iostream.h>

int main(int argc, char* argv[])
{
cout << "hello" << endl;
}

I want to non-windows specific code in my emacs editor...

Any suggestions as to a free easy to use compiler would be helpful...

Ian
Jul 22 '05 #1
4 1694
"Ian deSouza" <ia*********@yahoo.com> wrote...
I have 15+ years of experience programming. 8 from the Unix C++ world,
and 7 in the Java (mainly windows) world. I can't get the following
program to create an executable in Microsoft Visual C++.

#include <iostream.h>
#include <iostream>

int main(int argc, char* argv[])
{
cout << "hello" << endl;
std::cout << "hello" << std::endl;
}

I want to non-windows specific code in my emacs editor...

Any suggestions as to a free easy to use compiler would be helpful...


Look for MinGW (it's a flavour of GCC, IIRC). Comes as part of
"Dev-C++" IDE.

Victor
Jul 22 '05 #2

"Ian deSouza" <ia*********@yahoo.com> wrote in message
news:e9**************************@posting.google.c om...
I have 15+ years of experience programming. 8 from the Unix C++ world,
and 7 in the Java (mainly windows) world. I can't get the following
program to create an executable in Microsoft Visual C++.

#include <iostream.h>

int main(int argc, char* argv[])
{
cout << "hello" << endl;
}

I want to non-windows specific code in my emacs editor...

Any suggestions as to a free easy to use compiler would be helpful...

Ian


Stardard C++ headers no longer use the .h. And its really bad with VC++,
because you get the old, non-templatized versions which don't work with STL.
Plus, you need either a "using namespace std" line or prepend "std::" to
your cout and endl, since they are in the "std" namespace.

DrX
Jul 22 '05 #3
Ian deSouza wrote:
I have 15+ years of experience programming. 8 from the Unix C++ world,
and 7 in the Java (mainly windows) world. I can't get the following
program to create an executable in Microsoft Visual C++.

#include <iostream.h>
#include <iostream>
using namespace std;
int main(int argc, char* argv[])
{
cout << "hello" << endl;
}

I want to non-windows specific code in my emacs editor...

Any suggestions as to a free easy to use compiler would be helpful...

Ian

Jul 22 '05 #4
"Victor Bazarov" <v.********@comAcast.net> wrote in message
news:PnKzb.423038$Tr4.1197899@attbi_s03...
"Ian deSouza" <ia*********@yahoo.com> wrote...

I want to non-windows specific code in my emacs editor...

Any suggestions as to a free easy to use compiler would be helpful...


Look for MinGW (it's a flavour of GCC, IIRC). Comes as part of
"Dev-C++" IDE.

Victor


It *can* come as part of Dev-C++, which is how I use it. But it is available
standalone, and there are other IDEs for it.

--
Derek
Jul 22 '05 #5

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

Similar topics

11
by: Rajesh Garg | last post by:
Why and in what situations is CString not preferred? RVG
22
by: Jane Withnolastname | last post by:
I have been using the charset windows-1252 for a while, but it was pointed out to someone else in this group recently that it's a Microsoft creation (I'm sure I'm getting my facts wrong or skewed)...
2
by: Mike Fisher | last post by:
I'm seeing an error when I try to run/debug a web service. Although it doesn't happen every time, it does occur more than half of the times I hit F5. It appears to be returned by the the JIT...
41
by: Mountain Bikn' Guy | last post by:
What is the current preferred way to save user preferences in dotnet? Is the registry the right place to do this? Can anyone recommend a good article (or book) for this topic? Thanks.
5
by: Javaman59 | last post by:
Hi all, I'm a Unix guy from way back, who's enjoying learning C# and Windows programming. Overall, it's not such a difficult transition (as long as one keeps an open mind :) ), but there is one...
1
by: Razzie | last post by:
Hi all, I was working on a little project, worked fine, but now all of a sudden I get: The compiler failed with error code -1073741502 as an error message (when running the site, not...
23
by: T. Crane | last post by:
Right now I'm using Notepad++. What are other people using? trevis
2
by: Frank Rizzo | last post by:
I have a windows service which spawns a lot of threads that are all busy doing various things. What is the preferred way of telling all these threads to stop? For a situation, when the user stops...
41
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.