Mail Archives: djgpp/2004/01/14/03:12:40
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 -