Undefined reference to "S_ISDIR" and "S_ISREG" when compiling with "-betterC"

Adam D Ruppe destructionator at gmail.com
Mon Jan 10 19:28:56 UTC 2022


On Monday, 10 January 2022 at 19:20:56 UTC, rempas wrote:
> If I'm not mistaken, "core*" should work with "-betterC". Any 
> ideas?

You are mistaken, -betterC's main mission is to exclude core.

Declarations that just bind to something externally will still 
work, since it doesn't matter if they're included or not, but 
this one, being a macro in the original C, is a mini-function in 
D, and thus needs to be linked in.


More information about the Digitalmars-d-learn mailing list