Hello,
I just made a little C++ console application:
#include "iostream"
using namespace std;
int main ()
{
cout << "Hello Mars !";
return 0;
}
But when i tryed to compile it with Cygwin.
gcc main.cpp -o main.exe
It gave me the following error: http://users.pandora.be/rz6hkk/cygwin.png
I heard there is some new *modern* c++ language ?!
Jul 22 '05
22 2223 st************* @sun.com (Steve Clamage) writes: jive wrote:"Rolf Magnus" <ra******@t-online.de> wrote in message news:cgk967$soo $00 $1@news.t-online.com... jive wrote:
The last C++ standard version is from 2003, but except for a few minor corrections, it's the same as C++98.
AFAIK there is only a draft, as the standardisation process is still incomplete and new revision of the C++ standard is supposedly due this fall.
See: http://www.iso.org/iso/en/CatalogueD...talogueDetail? CSNUMBER=381 10 Strange.. I found no mention about this on http://www.open-std.org/jtc1/sc22/wg21/ and this http://www.open-std.org/jtc1/sc22/wg...2004/n1638.pdf outdates the one available on the ISO site. Could someone comment on that? - jive
The C++ Committee worked on addressing errors in the original 1998 C++ standard (see this newsgroup's FAQ list about Defect Reports), and is now working on a future C++ standard.
A Technical Report (TR1) was released containing fixes to Defect
I could've sworn that was called Techical *Corrigendum* 1 ... Am I
wrong?
Reports. The TR was folded into a new version of the C++ standard, dated 2003. That is now the official standard (ISO/IEC 14882:2003). It is available for purchase from ISO (at the above addres), from www.ansi.org, and from www.incits.org.
[snip]
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:st*****@ ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
llewelly wrote: st************* @sun.com (Steve Clamage) writes:
The C++ Committee worked on addressing errors in the original 1998 C++ standard (see this newsgroup's FAQ list about Defect Reports), and is now working on a future C++ standard.
A Technical Report (TR1) was released containing fixes to Defect
I could've sworn that was called Techical *Corrigendum* 1 ... Am I wrong?
You are correct. I mis-spoke. The correction is TC1, folded into the
2003 version of the standard.
---
Steve Clamage, st************* @sun.com
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:st*****@ ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html ]
Andre Heinen wrote: On Thu, 26 Aug 2004 10:25:37 -0400, Will Twentyman <wt********@rea d.my.sig> wrote:
Andre Heinen wrote:
On 25 Aug 2004 05:13:38 -0700, sp*****@pandora .be (TuPLaD) wrote:
#include "iostream"
<snip>
I think that if he used #include "iostream.h " it would work. <snip>
His mistake was to use gcc instead of g++. I have the same system: when linked correctly, the program works fine with "iostream". With "iostream.h ", it works fine too, but the compiler gives a warning.
What puzzles me is that I thought it was illegal to use double quotes to include standard headers. I'd like someone who knows better than me to confirm.
According to what I've got handy (Stroustrup), double quotes include
from the current directory, <> grabs from the standard include directory
and should not have ".h".
--
Will Twentyman
email: wtwentyman at copper dot net This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: alex |
last post by:
Hello
I have some c++ code, which has been happily developped in the
linux/unix world. Everything has always been compiled with different
compiler (intel, KAI, g++...) and gnu makefiles
For some obscure reasons, I have to make all this work in Windows,
where I have very little experience.
I've installed cygwin and everything is going well using the provided
g++ compiler.
|
by: Eugene A |
last post by:
Hello.
I am trying to compile a linux socket server and a client in cygwin on
windows. The g++ version is 3.3.1. The source was obtained from this
location:
http://www.linuxgazette.com/issue74/tougher.html
ServerSoccket.cpp apparently compiles OK. Socket.cpp has a problem. Here's
|
by: user |
last post by:
Cannot see what's wrong.
g++ -O -I../mht -o myfile myfile.o motionModel.o \
-L ../mht -lmht -lm
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld:
skippin
g incompatible ../mht/libmht.a when searching for -lmht
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld:
skippin
g incompatible ../mht/libmht.a when searching for -lmht
|
by: Janez Kostanj¹ek |
last post by:
Hello everyone,
this is my first post to postgres mailing list.
System that I use:
I am using Postgres under last CygWin published on public mirrors at the moment.
OS system runing is Windows 2000 professional, 1024 or 256 or 512 MB of RAMand 40Gb of disk.
Postmaster shows version 7.4.1
Problem:
|
by: abdur_rab7 |
last post by:
Hi,
I am compiling code for nanosleep in CYGWIN.
During compilation i get the following error
Socket.cc: In method `bool Socket::hangOnConnection(int = 0)':
Socket.cc:338: aggregate `struct timespec tmsp' has incomplete type and
cannot b
e initialized
| |
by: edwardzyang |
last post by:
I am running Windows XP with cygwin with gcc 3.4.4-1 and gdb
20060706-2. I compiled this very simple program:
#include <iostream>
using namespace std;
int main(int argc, char (*(argv)) ) {
int max; // number to count to
if (argc == 1) {
// print to 100
|
by: TheOne |
last post by:
I downloaded sample codes from http://www.cs.rpi.edu/~musser/stl-book/source/src.zip
and tried to compile them.
I started my cygwin on xp, renamed Makefile.unix to Makefile and typed
"make". After several successful compilation, it spat out following
error :
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../libcygwin.a(libcmain.o):
(.text+0xab): undefined reference to `_WinMain@16'
collect2: ld returned 1 exit status
|
by: Micko1 |
last post by:
Hello there :)
I have been using Visual Studio on a program which I have just completed, however I need to have it compiling using a unix based compiler, when I try in cygwin, I get the following error:
undefined reference to `_WinMain@16'
I have tried searching for a workaround, although I am not a programming guru, and I find it difficult to comprehend the discussions on this topic :)
Any help is appreciated.
|
by: JR |
last post by:
The code below compiles and runs perfectly in Windows XP Pro, Using MS
VS 2005.
If I compile with g++ (cygwin) using the following command line:
g++ -pedantic -Weffc++ -Wall -Wctor-dtor-privacy -Wold-style-cast -
Woverloaded-virtual -o kk kk.cpp
it displays the following errors:
kk.cpp: In function `void Burp(std::ostream&,
std::vector<std::vector<T, std::allocator<_CharT,
std::allocator<std::vector<T, std::allocator<_CharT &)':
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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: 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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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: 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...
| |