Rick Stanley
2014-10-15 13:35:45 UTC
In your example program:
https://www.gnu.org/software/libc/manual/html_node/Argp-Example-2.html#Argp-Example-2
On line 37 of the code, there is a typo in the number of arguments:
static struct argp argp = { 0, 0, 0, doc };
Should be:
static struct argp argp = { 0, 0, 0, doc, 0, 0, 0 };
Compiling with:
gcc -Wall -Wextra -o argp argp.c
gives the following error:
missing initializer for field 'children' (or ‘help_filter’, or ‘argp_domain’) missing initializer for field
Until all three args have been added to the call.
Please correct.
Thank you!
Rick Stanley
--
RSI (Rick Stanley, Inc.)
(917) 822-7771
www.rsiny.com
Computer Systems Consulting
Linux & Open Source Specialists
--
RSI (Rick Stanley, Inc.)
(917) 822-7771
www.rsiny.com
Computer Systems Consulting
Linux & Open Source Specialists
https://www.gnu.org/software/libc/manual/html_node/Argp-Example-2.html#Argp-Example-2
On line 37 of the code, there is a typo in the number of arguments:
static struct argp argp = { 0, 0, 0, doc };
Should be:
static struct argp argp = { 0, 0, 0, doc, 0, 0, 0 };
Compiling with:
gcc -Wall -Wextra -o argp argp.c
gives the following error:
missing initializer for field 'children' (or ‘help_filter’, or ‘argp_domain’) missing initializer for field
Until all three args have been added to the call.
Please correct.
Thank you!
Rick Stanley
--
RSI (Rick Stanley, Inc.)
(917) 822-7771
www.rsiny.com
Computer Systems Consulting
Linux & Open Source Specialists
--
RSI (Rick Stanley, Inc.)
(917) 822-7771
www.rsiny.com
Computer Systems Consulting
Linux & Open Source Specialists
--
RSI (Rick Stanley, Inc.)
(917) 822-7771
www.rsiny.com
Computer Systems Consulting
Linux & Open Source Specialists
RSI (Rick Stanley, Inc.)
(917) 822-7771
www.rsiny.com
Computer Systems Consulting
Linux & Open Source Specialists