Jeffrey,

> b2sum-src/b2sum.c:266:26: error: array type has incomplete element
> type 'struct option'
>      static struct option long_options[] = {
>                           ^~~~~~~~~~~~

When you use 'struct option', you need to

  1) use Gnulib module 'getopt-gnu' - see the documentation
     https://www.gnu.org/software/gnulib/manual/html_node/getopt.html
     https://www.gnu.org/software/gnulib/manual/html_node/getopt_002eh.html
     https://www.gnu.org/software/gnulib/manual/html_node/getopt_005flong.html

  2) #include <getopt.h>, not <unistd.h> - see the documentation
     https://www.gnu.org/software/gnulib/MODULES.html#module=getopt-gnu

Bruno

_______________________________________________
cfarm-users mailing list
cfarm-users@lists.tetaneutral.net
https://lists.tetaneutral.net/listinfo/cfarm-users

Reply via email to