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 Date: Wed, 21 Aug 2002 16:07:43 +0200 From: "Gerrit P. Haase" Organization: Esse keine toten Tiere X-Priority: 3 (Normal) Message-ID: <127428322354.20020821160743@familiehaase.de> To: cygwin AT cygwin DOT com Subject: g++ won't compile 'hello world' MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hallo cygwin, $ g++ --version g++ (GCC) 3.1.1 20020718 (prerelease) $ g++ -c g++_test.C $ g++ -o g++_test g++_test.o g++_test.o(.text+0x39):g++_test.C: undefined reference to `std::cout' g++_test.o(.text+0x46):g++_test.C: undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' g++_test.o(.text+0x6f):g++_test.C: undefined reference to `std::ios_base::Init::Init[in-charge]()' g++_test.o(.text+0x8a):g++_test.C: undefined reference to `std::ios_base::Init::~Init [in-charge]()' g++_test.o(.eh_frame+0x11):g++_test.C: undefined reference to `___gxx_personality_v0' collect2: ld returned 1 exit status g++_test.C: =========== #include using namespace std; int main () { cout << "what am I doing wrong?"; return 0; } Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/