Mail Archives: djgpp/1998/10/22/05:36:18
On Wed, 21 Oct 1998, Walter Moore wrote:
> > d:/djgpp/contrib/rsxntdj/lib/dll0w32.o(.data+0x28):fake: undefined reference to
> > `_os2dll'
> > env.o: In function `print_args':
> > env.c:181: undefined reference to `optind'
> > env.c:183: undefined reference to `optind'
> > env.o: In function `print_env':
> > env.c:200: undefined reference to `environ'
> > env.c:200: undefined reference to `environ'
> > options.o: In function `process_options':
> > options.c:69: undefined reference to `optind'
> > options.c:77: undefined reference to `optind'
> > options.o: In function `do_option':
> > options.c:220: undefined reference to `optarg'
> > options.c:256: undefined reference to `optarg'
> > options.c:264: undefined reference to `optarg'
> > options.c:265: undefined reference to `optarg'
> >
>
> I'm assuming that this means the getopt() routine is not being
> compiled in.
Not only `getopt': you also lack `_os2dll' and `environ' (the latter
is an array of pointers to environment variables accessed by `getenv'
and `putenv').
I'd guess you miss some library, but I don't know enough about RSXNT
to tell which one. You can use `nm' to look for the library that
includes these symbols.
- Raw text -