This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Can't compile hello world???
- From: "Jimmi Wolf" <jw at ect dot dk>
- To: <cygwin at cygwin dot com>
- Date: Mon, 16 Feb 2004 10:32:26 +0100
- Subject: Can't compile hello world???
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/