Aw: Re: [PATCH 0/2] GCC errors when building C++ Applications with libbsd

Markus Moessner kho237115 at gmx.de
Mon Sep 26 16:58:18 UTC 2022


>>
>> The second one is triggered by the function getrusage in rtemsbsd/include/bsd/sys/ressource.h.
>> There is a another declaration in include/sys/ressource.h provided with the toolchain.
>> Now, one has C Linkage the other one C++ Linkage which leads to a conflict. I ve simply made the one in libbsd invisible to the C++ compiler.

>This is a bug in Newlib (newlib/libc/include/sys/resource.h). This file
>needs the C++ extern "C" stuff.


Okay, I ll re-submit the first patch. On the second one, are you submitting it to newlib or do you expect me to do that?






More information about the devel mailing list