[tlbuild] build failure: duplicated extern "C" definition of getopt() when compiling a C++ program

Karl Berry karl at freefriends.org
Thu May 27 18:50:44 CEST 2010


    extern int getopt ( ) ; 

Evidently your CC is not defining __cplusplus, which would have avoided
the error.  So what macro does it predefine?

But anyway, I suspect that we can just remove the decl entirely.  I'm
doing that now.  We'll see if that causes new brokenness.


More information about the tlbuild mailing list