delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Subject: | Can't compile hello world??? |
Date: | Mon, 16 Feb 2004 10:32:26 +0100 |
Message-ID: | <BCAB90ADBCD246449F22990599002C8B085392@ect-server.ect> |
X-MS-Has-Attach: | |
MIME-Version: | 1.0 |
X-MS-TNEF-Correlator: | |
content-class: | urn:content-classes:message |
From: | "Jimmi Wolf" <jw AT ect DOT dk> |
To: | <cygwin AT cygwin DOT com> |
X-IsSubscribed: | yes |
Note-from-DJ: | This may be spam |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id i1G9VSfq021186 |
Hello A have a big problem. I can't compile a simple hello world program with the gcc compiler in cygwin. Here is the error: $ gcc hello.cpp In file included from /usr/include/c++/3.3.1/backward/iostream.h:31, from hello.cpp:1: /usr/include/c++/3.3.1/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substitu use -Wno-deprecated. hello.cpp:8:2: warning: no newline at end of file /cygdrive/c/DOCUME~1/JW/LOCALS~1/Temp/ccQxB9We.o(.text+0x35):hello.cpp: undefined reference to `std::cout' /cygdrive/c/DOCUME~1/JW/LOCALS~1/Temp/ccQxB9We.o(.text+0x3a):hello.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)' /cygdrive/c/DOCUME~1/JW/LOCALS~1/Temp/ccQxB9We.o(.text+0x63):hello.cpp: undefined reference to `std::ios_base::Init::Init[in-charge]()' /cygdrive/c/DOCUME~1/JW/LOCALS~1/Temp/ccQxB9We.o(.text+0x7e):hello.cpp: undefined reference to `std::ios_base::Init::~Init [in-charge]()' collect2: ld returned 1 exit status Any one have a idea to solve the problem?? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.583 / Virus Database: 369 - Release Date: 10-02-2004 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |