Mail Archives: djgpp/2001/06/20/06:01:12
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 -