W
wij
Hi:
I made a simple code(t.cpp) like below
#include <iostream>
int main()
{
std::cout << "helo! world.\n";
return(0);
};
$gcc t.cpp (causes the following dumps. What's the problem?)
/tmp/ccsRiwha.o(.text+0xd): In function `std::__verify_grouping(char
const*, unsigned int, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::size() const'
/tmp/ccsRiwha.o(.text+0x60): In function `std::__verify_grouping(char
const*, unsigned int, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >:perator[](unsigned
int) const'
/tmp/ccsRiwha.o(.text+0x9d): In function `std::__verify_grouping(char
const*, unsigned int, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >:perator[](unsigned
int) const'
"t" 30L, 2072C ¤w¼g¤J
I made a simple code(t.cpp) like below
#include <iostream>
int main()
{
std::cout << "helo! world.\n";
return(0);
};
$gcc t.cpp (causes the following dumps. What's the problem?)
/tmp/ccsRiwha.o(.text+0xd): In function `std::__verify_grouping(char
const*, unsigned int, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::size() const'
/tmp/ccsRiwha.o(.text+0x60): In function `std::__verify_grouping(char
const*, unsigned int, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >:perator[](unsigned
int) const'
/tmp/ccsRiwha.o(.text+0x9d): In function `std::__verify_grouping(char
const*, unsigned int, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&)':
: undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >:perator[](unsigned
int) const'
"t" 30L, 2072C ¤w¼g¤J