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 4 1711
"Ian deSouza" <ia*********@ya hoo.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
"Ian deSouza" <ia*********@ya hoo.com> wrote in message
news:e9******** *************** ***@posting.goo gle.com... 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
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
"Victor Bazarov" <v.********@com Acast.net> wrote in message
news:PnKzb.4230 38$Tr4.1197899@ attbi_s03... "Ian deSouza" <ia*********@ya hoo.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Rajesh Garg |
last post by:
Why and in what situations is CString not preferred?
RVG
|
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) and
therefore not good for cross-platform browsing.
Anyway, I am beginning my road to recovery (ie, breaking my addiction
to authoring only for IE) and I would like to know what is the
preferred charset?
I have tried a search and only find...
|
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 compiler as the page is
requested by the browser. The result is that
the "compiler failed with error code 2000". I have
tested the same code on another workstation with VS.NET
and it works fine EVERY time. I'm convinced it's not the
code and I...
|
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.
|
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 thing from Unix I miss the most -
the command line.
I've install a Unix like programming environment, call MSys, which let's me
do command line programming the way I want to, with the bash shell, and this
is running smoothly (vim editor, bash,...
| |
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 building).
I have NO idea what's wrong. I changed some code (only very small, which I
did like 10 times before that in the past 15 minutes) and I can't get it
|
by: T. Crane |
last post by:
Right now I'm using Notepad++. What are other people using?
trevis
|
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 the service or
the system is shutting down.
I could kill the threads, but that generates ThreadAbortException all
over the place and isn't elegant.
Regards
|
by: Miroslaw Makowiecki |
last post by:
Where can I download Comeau compiler as a trial version?
Thanks in advice.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |