Post #4028174
2026-07-21 07:55 UTC
I have generally managed to use gcc on mac, but now it is all broken. So annoying.
The Man clang does not handle nested functions even gnu99, so I brew installed the native arm gcc, which is a good start.
But it cannot find err.h and no amount of googling is helping me find it. It should be standard clib stuff.
Any clues welcome - what formulae or whatever it is called do I need to install?
#macos #clib #brew #homebrew
Replies (1)
-
@brouhaha@mastodon.social 2026-07-21 23:32
@revk@toot.me.uk I knew GCC had the nested functions extension, and I've sometimes been tempted to use it, but I've resisted in the interest of portability. I used nested functions a fairly bit in Pascal and Ada. I am slightly curious as to whether the GCC implementation uses a display vector, or a static link in the stack frame. But not curious enough to actually try it myself. Good luck with your GCC on Mac issues. Sorry I don't have any advice on that.