Skip to content
This repository was archived by the owner on Jan 17, 2026. It is now read-only.
This repository was archived by the owner on Jan 17, 2026. It is now read-only.

Compiling with recent G++ #5

Description

@david-simoes-93

With newer versions of C++, we get an error on line 274 of prof/prof.cpp:

prof.cpp:274:44: error: cast from ‘char*’ to ‘u32 {aka unsigned int}’ loses precision [-fpermissive]

Fixed by replacing the line by

profWrite32(fd, atoi(seg->tos[toindex].selfpc)) ||

Then, file Util.cpp on line 995:

../Util.cpp:995:19: error: invalid conversion from ‘int (*)(void*, void*, unsigned int)’ to ‘int (*)(gzFile, voidp, unsigned int) {aka int (*)(gzFile_s*, void*, unsigned int)}’ [-fpermissive]

and replacing the line with:

utilGzWriteFunc = (int (ZEXPORT *)(gzFile_s *,void * const, unsigned int))gzwrite;

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