BinaryCleric
Limp Gawd
- Joined
- May 25, 2005
- Messages
- 193
I just installed Cygwin and gcc on my computer and everytime I compile a C++ program with something simple like IOSTREAM or FSTREAM I get this error.
[OUTPUT]
/cygdrive/c/DOCUME~1/Cleric/LOCALS~1/Temp/ccvXrMm2.o:test.cpp: (.text+0xd): undef
ined reference to `std::basic_string<char, std::char_traits<char>, std::allocato
r<char> >::size() const'
/cygdrive/c/DOCUME~1/Cleric/LOCALS~1/Temp/ccvXrMm2.o:test.cpp: (.text+0x60): unde
fined reference to `std::basic_string<char, std::char_traits<char>, std::allocat
or<char> >:: operator[](unsigned int) const'
/cygdrive/c/DOCUME~1/Cleric/LOCALS~1/Temp/ccvXrMm2.o:test.cpp: (.text+0x9f): unde
fined reference to `std::basic_string<char, std::char_traits<char>, std::allocat
or<char> >:: operator[](unsigned int) const'
/cygdrive/c/DOCUME~1/Cleric/LOCALS~1/Temp/ccvXrMm2.o:test.cpp: (.text+0xce): unde
fined reference to `std::basic_string<char, std::char_traits<char>, std::allocat
or<char> >:: operator[](unsigned int) const'
/cygdrive/c/DOCUME~1/Cleric/LOCALS~1/Temp/ccvXrMm2.o:test.cpp: (.text+0x14f): und
efined reference to `std::ios_base::Init::Init()'
/cygdrive/c/DOCUME~1/Cleric/LOCALS~1/Temp/ccvXrMm2.o:test.cpp: (.text+0x16a): und
efined reference to `std::ios_base::Init::~Init()'
collect2: ld returned 1 exit status
[/OUTPUT]
I am new to Gygwin but not to Unix, and I have no idea what is going on.
[OUTPUT]
/cygdrive/c/DOCUME~1/Cleric/LOCALS~1/Temp/ccvXrMm2.o:test.cpp: (.text+0xd): undef
ined reference to `std::basic_string<char, std::char_traits<char>, std::allocato
r<char> >::size() const'
/cygdrive/c/DOCUME~1/Cleric/LOCALS~1/Temp/ccvXrMm2.o:test.cpp: (.text+0x60): unde
fined reference to `std::basic_string<char, std::char_traits<char>, std::allocat
or<char> >:: operator[](unsigned int) const'
/cygdrive/c/DOCUME~1/Cleric/LOCALS~1/Temp/ccvXrMm2.o:test.cpp: (.text+0x9f): unde
fined reference to `std::basic_string<char, std::char_traits<char>, std::allocat
or<char> >:: operator[](unsigned int) const'
/cygdrive/c/DOCUME~1/Cleric/LOCALS~1/Temp/ccvXrMm2.o:test.cpp: (.text+0xce): unde
fined reference to `std::basic_string<char, std::char_traits<char>, std::allocat
or<char> >:: operator[](unsigned int) const'
/cygdrive/c/DOCUME~1/Cleric/LOCALS~1/Temp/ccvXrMm2.o:test.cpp: (.text+0x14f): und
efined reference to `std::ios_base::Init::Init()'
/cygdrive/c/DOCUME~1/Cleric/LOCALS~1/Temp/ccvXrMm2.o:test.cpp: (.text+0x16a): und
efined reference to `std::ios_base::Init::~Init()'
collect2: ld returned 1 exit status
[/OUTPUT]
I am new to Gygwin but not to Unix, and I have no idea what is going on.