[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: help with g++-4.3 (headers)



Rex Dieter wrote:

> Neal Becker wrote:
> 
>> I don't have g++-4.3 installed.  When building ipython:
> ...
>> walktrap_graph.cpp:167: error: 'sort' was not declared in this scope
>> walktrap_graph.cpp:190: error: 'strlen' was not declared in this scope
>> 
>> I tried adding:
>> #include <cstring>
>> #include <algorithm>
> 
> In my K&R book, strlen needs:
> #include <string.h>
> 
> not sure about sort.
> 
> -- Rex
> 
This is c++.  <cstring> should bring in std::strlen.

http://www.cplusplus.com/reference/clibrary/cstring/

And it is working on F8.

sort is supposed to be std::sort from STL <algorithm>.  It is working on F8.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]