Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#48 Compilation broken on GCC 4.5.2

general
open
nobody
None
5
2011-02-05
2011-02-05
Michał Makowski
No

Compilation is broken when using
unixstl/filesystem/filesystem_traits.hpp
problematic line is 1158:
static file_handle_type invalid_file_handle_value()
{
return NULL; //problematic line
}
file_handle_type is defined as int so it generates:
error: converting to non-pointer type ‘stlsoft::unixstl_project::filesystem_traits<char>::file_handle_type’ from NULL.

Discussion

  • Suggested patch

     
    Attachments
  • Zar Eindl
    Zar Eindl
    2011-11-24

    I've downloaded stl-soft-1.9.109 and got the same error during compilation on a Fedora Linux 14 Box with gcc-Version 4.5.1 20100924 (Red Hat 4.5.1-4). This patch removed the compilation error successfully on my configuration. Thanks!
    But maybe it is a little bit disappointing, that this patch was not included in the standard distribution I've downloaded.