I get this big error while trying to compile a simple C program
under Cygwin
Code:
$ gcc FileClass2.cpp
In file included from FileClass2.cpp:3:
require.h:58:26: warning: no newline at end of file
/cygdrive/c/DOKUME~1/KHAJA~1.MOH/LOKALE~1/Temp/ccI3GSd5.o:FileClass2.cpp:(.text+
0xd): undefined reference to `std::basic_string<char, std::char_traits<char>, st
d::allocator<char> >::size() const'
/cygdrive/c/DOKUME~1/KHAJA~1.MOH/LOKALE~1/Temp/ccI3GSd5.o:FileClass2.cpp:(.text+
0x60): undefined reference to `std::basic_string<char, std::char_traits<char>, s
td::allocator<char> >::operator[](unsigned int) const'
/cygdrive/c/DOKUME~1/KHAJA~1.MOH/LOKALE~1/Temp/ccI3GSd5.o:FileClass2.cpp:(.text+
0x9f): undefined reference to `std::basic_string<char, std::char_traits<char>, s
td::allocator<char> >::operator[](unsigned int) const'
/cygdrive/c/DOKUME~1/KHAJA~1.MOH/LOKALE~1/Temp/ccI3GSd5.o:FileClass2.cpp:(.text+
0xce): undefined reference to `std::basic_string<char, std::char_traits<char>, s
td::allocator<char> >::operator[](unsigned int) const'
/cygdrive/c/DOKUME~1/KHAJA~1.MOH/LOKALE~1/Temp/ccI3GSd5.o:FileClass2.cpp:(.text+
0x205): undefined reference to `___gxx_personality_sj0'
collect2: ld returned 1 exit status