Date: Thu, 22 Oct 1998 10:09:37 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Walter Moore cc: djgpp AT delorie DOT com Subject: Re: RSXNTDJ compile error In-Reply-To: <362E596F.F1F99127@clover.c2d.fedex.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com 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.