Open mattgately opened 4 years ago
Thanks @mattgately for reporting this issue! The LWG will have a look at it.
The extern "C" is present in the signatures for 3.0.0. This issue can be closed.
@AndrewGoodrich: I think you are misunderstanding the issue. The OP pointed out that the extern "C"
part of the signatures is missing in the LRM definitions for the corresponding functions. So the question is whether the PoC should remove extern "C"
from these signatures or whether it needs to be addressed as part of an erratum to the IEEE Std 1666-2023 LRM.
Sorry for my misunderstanding the issue. I assume this is an issue we need to discuss.
On Dec 17, 2023, at 9:27 AM, Torsten Maehne @.***> wrote:
@AndrewGoodrich https://github.com/AndrewGoodrich: I think you are misunderstanding the issue. The OP pointed out that the extern "C" part of the signatures is missing in the LRM definitions for the corresponding functions. So the question is whether the PoC should remove extern "C" from these signatures or whether it needs to be addressed as part of an erratum to the IEEE Std 1666-2023 LRM.
— Reply to this email directly, view it on GitHub https://github.com/accellera-official/systemc/issues/2#issuecomment-1859187816, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGQR2OHECSNICWMWCRL6FLYJ36MFAVCNFSM4KIMEIFKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBVHEYTQNZYGE3A. You are receiving this because you were mentioned.
sc_externs.h forward declares the following functions:
It appends extern "C" to the signature of the functions, which is not compatible with declarations of these functions in the SystemC LRM sections 4.3.1-4.3.4.
Another source file that declares and defines the functions according to the standard, without extern "C" is unable to link to the systemc library correctly.