r****t 发帖数: 10904 | 1 奇怪,在连接的时候遇到如下错误,-lstdc++ 也没法成功,怎么办?
undefined reference to `operator<<(std::basic_string
char>, std::allocator >&, int)'
undefined reference to `operator<<(std::basic_string
char>, std::allocator >&, int)'
collect2: ld returned 1 exit status | t****t 发帖数: 6806 | 2 someone called
string<
and
string>>int
of course STL doesn't have this
traits<
traits<
【在 r****t 的大作中提到】 : 奇怪,在连接的时候遇到如下错误,-lstdc++ 也没法成功,怎么办? : undefined reference to `operator<<(std::basic_string: char>, std::allocator >&, int)' : undefined reference to `operator<<(std::basic_string: char>, std::allocator >&, int)' : collect2: ld returned 1 exit status
| r****t 发帖数: 10904 | 3 我看看,确实有 string<>int 倒是没看到,看来需要把 int 转成
string?
【在 t****t 的大作中提到】 : someone called : string<: and : string>>int : of course STL doesn't have this : : traits< : traits<
| t****t 发帖数: 6806 | 4 看错了, 是string<
至于你想干什么, 你声明了不定义我怎么能知道...
【在 r****t 的大作中提到】 : 我看看,确实有 string<>int 倒是没看到,看来需要把 int 转成 : string?
| r****t 发帖数: 10904 | 5 我要是知道写 code 的人想干什么就好多了。。。现在 api 都改了那么多了。
【在 t****t 的大作中提到】 : 看错了, 是string<: 至于你想干什么, 你声明了不定义我怎么能知道...
| r****t 发帖数: 10904 | 6 咦,<< 还真是被重载了的,可能给我改来改去改出问题了。
【在 t****t 的大作中提到】 : 看错了, 是string<: 至于你想干什么, 你声明了不定义我怎么能知道...
|
|