delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/01/14/03:12:40

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Wed, 14 Jan 2004 11:13:38 +0300
From: Prior <prior AT surfeu DOT fi>
X-Priority: 3 (Normal)
Message-ID: <505545170.20040114111338@surfeu.fi>
To: DJGPP Discussion Club <djgpp AT delorie DOT com>
Subject: errors
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

Hi All DJGPP coders!

I think i've installed DJGPP correctly.
I am newbie in DJGPP... so

here is test.cc file

----------------------------
#include <iostream.h>

int main()
{
cout << "dsfdsf";
return 0;
}
----------------------------

and I do: gcc -Wall -Wno-deprecated test.cc -o test.exe

C:\WINNT\TEMP/ccmQwXw2.o(.text+0x21):test.cc: undefined reference to `std::cout'
C:\WINNT\TEMP/ccmQwXw2.o(.text+0x26):test.cc: 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*)'
C:\WINNT\TEMP/ccmQwXw2.o(.text+0x52):test.cc: undefined reference to `std::ios_b
ase::Init::Init[in-charge]()'
C:\WINNT\TEMP/ccmQwXw2.o(.text+0x71):test.cc: undefined reference to `std::ios_b
ase::Init::~Init [in-charge]()'
C:\WINNT\TEMP/ccmQwXw2.o(.eh_frame+0x11):test.cc: undefined reference to `___gxx
_personality_v0'
collect2: ld returned 1 exit status

what is wrong? what should i do?

-- 
Prior

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019