Re: libargp: argp_program_version does not work

2013-07-12 Thread Andrew Schulman
> Hello! > > > int main (int argc, char **argv) > > { > > argp_program_version = version; > > argp_program_bug_address = bug_address; > > > > argp_parse (&argp, argc, argv, 0, 0, 0); } > > > > /*** End modified argp example #2 ***/ > > > > If you compile the above version, you'll see tha

RE: libargp: argp_program_version does not work

2013-07-12 Thread Fedin Pavel
Hello! > int main (int argc, char **argv) > { > argp_program_version = version; > argp_program_bug_address = bug_address; > > argp_parse (&argp, argc, argv, 0, 0, 0); } > > /*** End modified argp example #2 ***/ > > If you compile the above version, you'll see that the --version option >

Re: libargp: argp_program_version does not work

2013-07-11 Thread Andrew Schulman
> > Hello! > > > > I have found a problem: argp_program_version string is ignored by libargp. > > Hi Pavel. Thanks for reporting this. I confirm your observation. For > example, when I compile argp's example #2 > (http://www.gnu.org/software/libc/manual/html_node/Argp-Example-2.html#Argp-Exa

Re: libargp: argp_program_version does not work

2013-07-11 Thread Andrew Schulman
> Hello! > > I have found a problem: argp_program_version string is ignored by libargp. Hi Pavel. Thanks for reporting this. I confirm your observation. For example, when I compile argp's example #2 (http://www.gnu.org/software/libc/manual/html_node/Argp-Example-2.html#Argp-Example-2), the -

libargp: argp_program_version does not work

2013-07-11 Thread Fedin Pavel
Hello! I have found a problem: argp_program_version string is ignored by libargp. I guess the problem happens because of DLL's nature. DLLs cannot contain unresolved symbols, so the DLL has own version of argp_program_version which is always initialized to NULL. There's no way to override it.