From: "Johan Venter" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: Rsxntdj problem Lines: 42 X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Message-ID: Date: Fri, 16 Jul 1999 11:17:12 +1000 NNTP-Posting-Host: 139.134.163.83 X-Trace: newsfeeds.bigpond.com 932122283 139.134.163.83 (Fri, 16 Jul 1999 20:51:23 EST) NNTP-Posting-Date: Fri, 16 Jul 1999 20:51:23 EST Organization: Telstra BigPond Internet Services (http://www.bigpond.com) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >#include >int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, >LPSTR lpCmdLine, int nCmdShow) >{ >MessageBox (NULL, "Hello World", "First App", MB_OK); >return 0; >} >/*This is test.c */ > >With any other program I get this error : windows.h no such file (ENOENT). Are you compiling a C or C++ program when you get this error? When compiling with gccw32, only the C include paths are added, so you need to add the following to your autoexec.bat: CPP_INCLUDE_PATH=%RSXNTDJ%/include/win32 >PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\RSXNTDJ\BIN;C:\DJGPP\BIN; >C:\DJGPP\LIB\GCC-LIB\DJGPP\2.81;C:\MC\BC4\BIN;C:\Mc\0chdir ^^^^^^^^^^^^What is this in your path? Get rid of the C:\DJGPP\LIB\GCC-LIB\DJGPP\2.81 >set DJGPP=C:\DJGPP\DJGPP.ENV >SET RSXNTDJ=C:\RSXNTDJ >SET LIBRARY_PATH=C:\RSXNTDJ\LIB >SET INCLUDE_PATH=C:\RSXNTDJ\INCLUDE;C:\DJGPP\INCLUDE The LIBRARY_PATH and INCLUDE_PATH lines make no difference whatsoever, get rid of them. >In the FAQ it is mentioned that the LIBRARY_PATH variable in DJGPP.ENV file >must be modified : >LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib This is irrelevant, don't do this. -- Johan Venter ICQ 3643877 Visit The TPU DJGPP Interest Group: http://surf.to/djgppig