Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: X-MS-Has-Attach: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MS-TNEF-Correlator: content-class: urn:content-classes:message From: "Jimmi Wolf" To: X-IsSubscribed: yes Note-from-DJ: This may be spam Content-Transfer-Encoding: 8bit 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 >& std::operator<< >(std::basic_ostream >&, 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/