I can't get the GNUSH compiler to work right
After looking through Takashi's tutorial, I was able to fix my .bat file to work with the SGL, though I'm not too sure if I have it configured perfectly. Unlike in the Cygnus Compiler, what's SETENV.bet in that one is I think GNU_SH_coff.bet in this compiler. Anyways, here's what I have in the bat file:
It seems to work ok I guess, untill I try to compile something. I keep getting errors. Basically, this one:
After getting some help on IRC, I found out something about these EOF(End of File) things at the end of like every single .c or .o file. So I get rid of all of them(even though I seriously doubt you're expected to do this with every since sample they give you), and try compiling again, only to ge more errors:
Does anyone have any idea what's going on? I just don't get it. There should be a tutorial for setting up the GNUSH compiler too cuz I had to look on IRC until I finally got someone to help me. Anyway, if anyone has any idea what's going on, please respond.
Thx
After looking through Takashi's tutorial, I was able to fix my .bat file to work with the SGL, though I'm not too sure if I have it configured perfectly. Unlike in the Cygnus Compiler, what's SETENV.bet in that one is I think GNU_SH_coff.bet in this compiler. Anyways, here's what I have in the bat file:
Code:
@Echo Off
Set PATH=C:\SS-SDK\Sh-coff\sh-coff\bin;C:\SS-SDK\OtherU~1;%PATH%
SET GCC_EXEC_PREFIX=C:\SS-SDK\Saturn\SGL\LIB\
SET INFOPATH=C:\SS-SDK\Saturn\SGL\INFO
SET C_INCLUDE_PATH=c:\SS-SDK\Saturn\SGL\INC
SET CPLUS_INCLUDE_PATH=c:\SS-SDK\Saturn\SGL\INC
SET TMPDIR=C:\TEMP
Set MAKE_MODE=win32
cmd "cd \" /k
It seems to work ok I guess, untill I try to compile something. I keep getting errors. Basically, this one:
Code:
objects:7: *** missing separator. Stop.
After getting some help on IRC, I found out something about these EOF(End of File) things at the end of like every single .c or .o file. So I get rid of all of them(even though I seriously doubt you're expected to do this with every since sample they give you), and try compiling again, only to ge more errors:
Code:
MAKE: *** No rule to make target `main.o', needed by `sl.coff'. Stop.
Does anyone have any idea what's going on? I just don't get it. There should be a tutorial for setting up the GNUSH compiler too cuz I had to look on IRC until I finally got someone to help me. Anyway, if anyone has any idea what's going on, please respond.
Thx