From: "Johan Venter" Newsgroups: comp.os.msdos.djgpp References: <19990722233323 DOT 07389 DOT 00000245 AT ng-fl1 DOT news DOT cs DOT com> Subject: Re: can't compile c++ "hello world" Lines: 67 X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Message-ID: Date: Mon, 26 Jul 1999 10:48:05 +1000 NNTP-Posting-Host: 203.40.83.79 X-Trace: newsfeeds.bigpond.com 932955307 203.40.83.79 (Mon, 26 Jul 1999 12:15:07 EST) NNTP-Posting-Date: Mon, 26 Jul 1999 12:15:07 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 >SET DJGPP=C:\DJGPP\DJGPP.ENV >rem SET RSXNTDJ=C:\DJGPP\RSXNTDJ >SET MSSDK=C:\MSSDK > >Do I want to uncomment the rsx line? > >For djgpp.env, I have standard stuff and >+RSXNTDJ=%DJDIR%/rsxntdj It is probably better if you uncomment the line in your autoexec.bat and get rid of the line in your djgpp.env, otherwise some other programs might not work correctly (ie grc). Also make sure that RSXNTDJ/bin is in your PATH!!! >[cpp] >CPLUS_INCLUDE_PATH=%RSXNTDJ%/include;%RSXNTDJ%/include/win32;%/>;CPLUS_INCLUDE_PATH%%DJDI R%/lang/cxx >C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include > >and > >[gcc] >COMPILER_PATH=%RSXNTDJ%/bin;%/>;COMPILER_PATH%%DJDIR%/bin >LIBRARY_PATH=%RSXNTDJ%/lib;%/>;LIBRARY_PATH%%DJDIR%/lib You don't need the %RSXNTDJ%/bin in the COMPILER path variable because you should be putting RSXNTDJ/bin in your PATH in your autoexec.bat. Don't add the %RSXNTDJ%/lib to the LIBRARY_PATH variable because you will stuff up your original DOS DJGPP installation, it will find the wrong specs file. The RSXNTDJ specs file is automatically selected when you run gccw32. -- Johan Venter ICQ 3643877 Visit The TPU DJGPP Interest Group: http://surf.to/djgppig >at some point it couldn't find windows.h so I added the rsx/win32 dir to the >inc_path > >Please tell me what the correct compiler_path, lib_path, and inc_paths are. >Thanks alot. > > >>>Johan: I had already downloaded >>>rsxntdj. That's where my problem >>>came from. Since DJGPP used c:/djgpp/rsxntdj/lib/specs, >>>it gave me the error compiling >>>a "dos" program. If you can compile >>>that program with the -v switch and it >>>says it is using c:/djgpp/rsxntdj/lib/specs, >>>please let me know. Mine only compiles >>>if it is using c:/djgpp/lib/specs. >> >>Well, then you've added something to your LIBRARY_PATH environment variable >>that you >>shouldn't. NOTHING should be added to that variable. >>The issue of specs files has become irrelevant in RSXNTDJ 1.5 (check that >>this is your >>version). >>Please post your autoexec.bat and djgpp.env. >> > > ><> >