i**p 发帖数: 902 | 1 Just found VC++ does not support this function.
error LNK2001: unresolved external symbol _strlongth | p***o 发帖数: 1252 | 2 You must be kidding me.
【在 i**p 的大作中提到】 : Just found VC++ does not support this function. : error LNK2001: unresolved external symbol _strlongth
| i**p 发帖数: 902 | 3 http://www.acceleratedcpp.com/details/msbugs.html
Chapter 12
Similar to the problems in Chapters 6 and 8, where VC++ 6.0 fails to include
the character classification functions (isalpha, isalnum, isspace etc.) as
part of the std namespace, it also fails to include the strlen function in
std. The workaround is analogous: Omit the qualification of std::strlen.
For example, in the Str constructor that takes a const char*:
#ifdef _MSC_VER
std::copy(cp, cp + strlen(cp), std::back_inserter(data));
#el
【在 p***o 的大作中提到】 : You must be kidding me.
| p***o 发帖数: 1252 | 4 这跟你的 error LNK2001: unresolved external symbol _strlongth
有啥关系?
include
as
【在 i**p 的大作中提到】 : http://www.acceleratedcpp.com/details/msbugs.html : Chapter 12 : Similar to the problems in Chapters 6 and 8, where VC++ 6.0 fails to include : the character classification functions (isalpha, isalnum, isspace etc.) as : part of the std namespace, it also fails to include the strlen function in : std. The workaround is analogous: Omit the qualification of std::strlen. : For example, in the Str constructor that takes a const char*: : #ifdef _MSC_VER : std::copy(cp, cp + strlen(cp), std::back_inserter(data)); : #el
| i**p 发帖数: 902 | 5 That is why I came here.
【在 p***o 的大作中提到】 : 这跟你的 error LNK2001: unresolved external symbol _strlongth : 有啥关系? : : include : as
| p***o 发帖数: 1252 | 6 Please post your code. Every line.
【在 i**p 的大作中提到】 : That is why I came here.
|
|