delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/16/19:30:16

From: "Johan Venter" <jventer AT writeme DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <JSSi3.1603$hR6 DOT 141499 AT weber DOT videotron DOT net>
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: <L8Ej3.8089$yD2.18532@newsfeeds.bigpond.com>
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 <windows.h>
>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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019