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

rempas rempas at tutanota.com
Mon Jan 10 19:33:36 UTC 2022


On Monday, 10 January 2022 at 19:28:56 UTC, Adam D Ruppe wrote:
>
> 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.

Thanks! It needs to be linked with which library? In C it doesn't 
need to be linked with nothing extra than the system library that 
the C compilers already link (unless you pass "-nostdlib" of 
course).


More information about the Digitalmars-d-learn mailing list