[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ./lib/getopt.h:197: error: redefinition of `struct option'

From: Mark R Bannister
Subject: Re: ./lib/getopt.h:197: error: redefinition of `struct option'
Date: Tue, 6 Dec 2011 15:03:34 +0000

On Tue 06/12/11 13:56 , Eric Blake address@hidden sent:
> There's your problem.  You have to #include <config.h>  prior to any
> other include files, if you want gnulib's getopt replacements to work.

Thanks Eric, that worked.

May I suggest that gnulib-tool is improved to check that a) config.h is being
generated and if not advise the user on how to get it to be created in the first
place and b) advise the user to #include the config.h header.

Thanks again,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]