delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/28/21:14:53.1

From: csid6 AT cs DOT comnospam (Csid6)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: can't compile c++ "hello world"
Lines: 57
NNTP-Posting-Host: ladder05.news.cs.com
X-Admin: news AT cs DOT com
Date: 23 Jul 1999 03:33:23 GMT
References: <lfwl3.10956$yD2 DOT 24685 AT newsfeeds DOT bigpond DOT com>
Organization: CompuServe (http://www.compuserve.com/)
Message-ID: <19990722233323.07389.00000245@ng-fl1.news.cs.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

It seems to work now, as long as I use g++ for
compiling and linking.

I did remove some things from my autoexec.bat
now it has only 

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

and (I don't know if this is what I want here...)

[cpp]
CPLUS_INCLUDE_PATH=%RSXNTDJ%/include;%RSXNTDJ%/include/win32;%/>;CPLUS_INC
LUDE_PATH%%DJDIR%/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

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.
>


<<remove nospam in email address>>
 

- Raw text -


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