help with g++-4.3 (headers)

Neal Becker ndbecker2 at gmail.com
Wed Feb 13 20:20:41 UTC 2008


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.




More information about the fedora-devel-list mailing list