Message-ID: <362B7A65.F9112A10@clover.c2d.fedex.com> Date: Mon, 19 Oct 1998 12:44:05 -0500 From: Walter Moore Organization: Federal Express X-Sender: "Walter Moore" (Unverified) X-Mailer: Mozilla 4.04 [en]C-FedExIntl (Win95; I) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: RSXDJNT compile error References: <362B6347 DOT 63379BD6 AT clover DOT c2d DOT fedex DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com I fixed my previous error by explicitly including the RSXNTDJ, but now with this command: > gcc -O -Zdll -Zwin32 -Id:/djgpp/contrib/rsxntdj/include/ -Id:/djgpp/contrib/rsxntdj/include/win32 -Id:/djgpp/contrib/rsxntdj/include/mssdk -g -DDEBUG -DCLIENT -o lpcli lpcli.o strcli.o autogen.o env.o error.o initvars.o net.o options.o output.o readline.o writen.o -Id:/djgpp/contrib/rsxntdj/lib/st -Id:/djgpp/contrib/rsxntdj/lib/all -Ic:/djgpp/src/loadplan/LPserver.works -lwsock32 -lsocket (and yes, I have to explicitly include the paths to RSXNTDJ include and lib dirs, but I do not know why) > 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' Any idea why I'm getting the error having to do with _os2dll from dll0w32.o and why the getopt() variables are not being found? thanks! Walter -- Walter Moore Sr. Programmer Analyst Federal Express wbmoore AT fedex DOT com 2813 Business Park Memphis TN 38118 USA work: 901-369-2640 fax: 901-369-3634