Skip to content

Build error due to wrong use of std::ofstream/std::ifstream #6

@cc-michaelu

Description

@cc-michaelu

Hello,

I just came across this project as I look for libraries to use to access the SPI & GPIO onboard our embedded Linux evaluation board (DART-MX8M-MINI from Variscite). I realize the code has not been updated in many years, but it is clear that the use of the std::ifstream/std::ofstream is not correct. Currently building from the makefile results in fatal build errors. Specifically comparing a stream to 0 which is done in several places to test if the file exists (it should be using operator bool() or is_open()).

If I have some time today I will make the changes needed to get it to compile and work correctly. If I get this accomplished soon I will push those changes and file a Pull Request in case the maintainer would like to get this project building again.

Thank you,
Michael Uman
Sr Software Engineer
Cana Technologies, Inc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions