delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/20/06:01:12

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: (no subject)
Date: 20 Jun 2001 09:53:02 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 81
Message-ID: <9gprpu$quc$1@nets3.rz.RWTH-Aachen.DE>
References: <3B302E28 DOT 4FCC96FC AT home DOT com>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 993030782 27596 137.226.32.75 (20 Jun 2001 09:53:02 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 20 Jun 2001 09:53:02 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Don Farley <mrpoody AT home DOT com> wrote:

> When I run gccw32 TEST3.C in the rsxide command line I get this dos
> reply I've been battling for a month to get it configured to work and
> remembered that you sent me a reply to the same sort of question and
> asked for the dos error stuff here it is  This is how my auto exec is
> set up I get the correct version when I type gccw32 -v or gcc -v reading
> from rsxntdj specs file.

Please check your keyboard. Your '.' key seems to only work once in a
while. :-)

[...]
> DOS reply:
> c:/djgpp/lib/crt0.o< .data+)xc2>:crt0.s: undefined reference to 'main'
> c:/djgpp/lib/libc.a<crt1.o><.text+0x44e>:crt1.c: undefined reference to
> 'main'

1) Unless my memory of using RSXNTDJ fails me badly, this should not
read c:\djgpp\lib\<something>, but c:\djgpp\rsxntdj\lib\<something>.
In both lines.

2) The error itself means that there is no 'main' function in the source
code you compiled --- and that's 100% correct. So either something from
RSXNTDJ (which didn't actually get used --> 1) should have provided that,
or the example is just plain wrong.


> Autoexec.bat:
> SET SNDSCAPE=C:\WINDOWS
> @PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRA~1\WIN98RK;%PATH%
> SET BLASTER=A220 I7 D1 T2
> SET PATH= C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRA~1\WIN98RK
> set PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\Djgpp\bin;%path%

This path setting is wrong. Make that:

set PATH=C:\Djgpp\bin;%path%

You don't want another pair of c:\windows\... directories in your
path.

> set DJGPP=C:/Djgpp/djgpp.env
> Set  RSXNTDJ= %Path%;C:\DJGPP\RSXNTDJ\bin

I think this is very seriously wrong, too. RSXNTDJ is supposed to
point to the RSXNTDJ .env file, IIRC. Looks like you really should
re-read the RSXNTDJ installation instructions another time. *Very*
slowly.

> Set  PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\DJGPP\RSXNTDJ\bin;%PATH%

Again, this path setting is wrong. Make it

Set  PATH=C:\DJGPP\RSXNTDJ\bin;%PATH%

> set include_path= %path%;C:\djgpp\include;
> SET C_INCLUDE_PATH=C:\DJGPP\RSXNTDJ\include\win32\anders;C:\djgpp\RSXNTdj\INCLUDE\MSSDK;

> C:\MSSDK\INCLUDE

What's this line doing here? Seems you have a blank in the middle of
the previous 'set C_INCLUDE_PATH=...' line --- remove that.

> SET LIBRARY_PATH=C:\Djgpp\RSXNTDJ\LIB;C:\DJGPP\LIB

I suspect this to be wrong, too. 

At the very least, this setup means you can never use the real DJGPP
at all, since you overrode all it's settings, giving RSXNTDJ priority.








-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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