Page 1 of 1

about compile error

Posted: Sat Dec 16, 2006 2:51 pm
by itahashi
Nice to meet you.
I wanted to start the programming of genesis.
I downloaded sgcc and developed the contents of the dev file in c:\genesis, and compiled the demos, but..


C:\GENESIS\DEMO1>make
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
Error makefile 27: Command syntax error
*** 1 errors during make ***

C:\GENESIS\DEMO1>

The error above was displayed.
I erased ";" which seemed to be the cause of the error.( ";"is in makefile.) Then Icompiled it again. But..

C:\GENESIS\DEMO1>make
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
"Making component -> demo1.o"
...\bin\hcc -I..\\include\ demo1.c

** error -1073741819 ** deleting demo1.o

C:\GENESIS\DEMO1>

Again the error above was displayed. I can not compile the demos.
Please tell me how to solve it.

Posted: Sun Dec 17, 2006 1:07 am
by Stef
Welcome on the board :)

First, i don't know where you got that make.exe file, but a makefile by borland doesn't sound good...

I don't really want to "sell" it but you should try that mini devkit for genesis :
http://www.spritesmind.net/_GenDev/foru ... c.php?t=14

It only includes the strict minimum necessary for genesis rom compilation.
You have to modify the batch file (.bat) accordling to your installation path then use them (from your sources directory) for compilation.

Cheers.

thank you

Posted: Sun Dec 17, 2006 1:30 pm
by itahashi
Thank you.

I was able to compile gencube3D by using mini Genesis dev kit v0.1.
And I would like to know how to compile the demos in sgcc by using mini Genesis dev kit v0.1.

Posted: Sun Dec 17, 2006 8:58 pm
by Stef
Unfortunatly the library isn't compatible, each demo are specific to the lib and "dev kit" used :-/
I should do more demo for this mini dev kit.
You can also have a look on the different headers, they help a lot :)

Re: about compile error

Posted: Mon Dec 18, 2006 9:54 pm
by plee
itahashi wrote:Nice to meet you.
I wanted to start the programming of genesis.
I downloaded sgcc and developed the contents of the dev file in c:\genesis, and compiled the demos, but..


C:\GENESIS\DEMO1>make
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
Error makefile 27: Command syntax error
*** 1 errors during make ***

C:\GENESIS\DEMO1>

The error above was displayed.
I erased ";" which seemed to be the cause of the error.( ";"is in makefile.) Then Icompiled it again. But..

C:\GENESIS\DEMO1>make
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
"Making component -> demo1.o"
...\bin\hcc -I..\\include\ demo1.c

** error -1073741819 ** deleting demo1.o

C:\GENESIS\DEMO1>

Again the error above was displayed. I can not compile the demos.
Please tell me how to solve it.
Looks like your PATH variable is setup for Borland's compiler. You will have to create a .bat to setup a PATH variable correct each time you startup a DOS prompt in Windows.

Posted: Wed Dec 20, 2006 1:21 pm
by itahashi
Thank you for your reply.

I created a .bat to change a PATH for Borland's compiler when I startupped a DOS prompt.
However, an error is displayed. I have little knowledge about how to create a path for
something. Looks like my creating a path made the error.
I would like to know exactly how I can create a path to compile the demos.

Posted: Wed Dec 20, 2006 3:36 pm
by Pascal
create a .bat with

set PATH=edit_your_path_gendev\bin

exemple mine is

set PATH=c:\sdk\GenDev\bin

welcome on board ;)

Posted: Wed Dec 20, 2006 3:52 pm
by Stef
:D
mine is d:\apps\GenDev\bin

Posted: Wed Dec 20, 2006 4:46 pm
by Fonzie
Mine is :D
path c:\xgcc\bin;

Posted: Fri Dec 22, 2006 1:31 pm
by itahashi
Thank you for the reply.

I set it with a PATH below.
set PATH=c:\GENESIS\bin
And I compiled the demos by using this path.

(C)Copyright Microsoft Corp. 1992-1993
"Making component -> demo3.o"
...\bin\hcc -I..\\include\\ demo3.c
make.exe: *** [demo3.o] Error 5

C:\GENESIS\DEMO3>

These errors have appeared.
Please tell me why these things happen.

Posted: Sun Dec 24, 2006 10:41 pm
by plee
Your now pointing to the Microsoft's version of Make :wink:

You probably have Visual Studio installed...

You might have to do this so that it searches the gen. stuff first.

PATH=C:\Dev\Genesis;%PATH%

But this might mess up your VS stuff. :cry: