|
Michael Marklew wrote:
>
> Just tell me if I am been lazy but I can't find the argp.h file anywhere.
you are probably using an older version of glibc, which doesn't have the
argp stuff. This has been reported several times, and i begin to think
it was a bad decision to use this interface instead of getopt().
However, it's so easy to use...
If you can't switch to a recent glibc version, the 2 options are:
1 - comment out the argument parsing and hard-code the options you need
at the very beginning of main().
// set options defaults
option_values.highspeed = 0;
...
...
option_values.lflag[LNPD_LOG_INFO] = 1;
For having run lnpd in foreground with minimal logging to stderr, you
could change:
option_values.nodaemon = 1;
option_values.logfile = "-";
option_values.dologging = 1;
and leave the other settings (do NOT delete them).
2 - rewrite the argument parsing using getopt() or whatever you like.
--Martin
|
|
Message has 1 Reply: | | Re: LNP Example please
|
| Just updated my libc version (I love apt-get on debian linux... woohoo... it took about 30 seconds to update about 6 core applications on my system with a single simple command !!) Ok. it now complies without a problem and lnp also appears to run (...) (25 years ago, 10-Feb-00, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | Re: LNP Example please
|
| Just tell me if I am been lazy but I can't find the argp.h file anywhere. abacus:~/lego/lnpd+liblnp$ make depend for i in lnpd liblnp applications ; do make -C $i depend || exit -1 ; done make[1]: Entering directory `/home/mike/lego/lnp...blnp/lnpd' (...) (25 years ago, 9-Feb-00, to lugnet.robotics.rcx.legos)
|
21 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|