about compile error

Ask anything your want about Megadrive/Genesis programming.

Moderator: BigEvilCorporation

Post Reply
itahashi
Newbie
Posts: 4
Joined: Sat Dec 16, 2006 11:15 am

about compile error

Post by itahashi » Sat Dec 16, 2006 2:51 pm

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.

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Sun Dec 17, 2006 1:07 am

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.
Last edited by Stef on Mon Dec 18, 2006 10:39 pm, edited 2 times in total.

itahashi
Newbie
Posts: 4
Joined: Sat Dec 16, 2006 11:15 am

thank you

Post by itahashi » Sun Dec 17, 2006 1:30 pm

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.

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Sun Dec 17, 2006 8:58 pm

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 :)

plee
Very interested
Posts: 66
Joined: Wed Nov 29, 2006 11:32 am
Location: Houston, Texas

Re: about compile error

Post by plee » Mon Dec 18, 2006 9:54 pm

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.

itahashi
Newbie
Posts: 4
Joined: Sat Dec 16, 2006 11:15 am

Post by itahashi » Wed Dec 20, 2006 1:21 pm

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.

Pascal
Very interested
Posts: 200
Joined: Wed Nov 29, 2006 11:29 am
Location: Belgium
Contact:

Post by Pascal » Wed Dec 20, 2006 3:36 pm

create a .bat with

set PATH=edit_your_path_gendev\bin

exemple mine is

set PATH=c:\sdk\GenDev\bin

welcome on board ;)

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Wed Dec 20, 2006 3:52 pm

:D
mine is d:\apps\GenDev\bin

Fonzie
Genny lover
Posts: 323
Joined: Tue Aug 29, 2006 11:17 am
Contact:

Post by Fonzie » Wed Dec 20, 2006 4:46 pm

Mine is :D
path c:\xgcc\bin;

itahashi
Newbie
Posts: 4
Joined: Sat Dec 16, 2006 11:15 am

Post by itahashi » Fri Dec 22, 2006 1:31 pm

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.

plee
Very interested
Posts: 66
Joined: Wed Nov 29, 2006 11:32 am
Location: Houston, Texas

Post by plee » Sun Dec 24, 2006 10:41 pm

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:

Post Reply