SGCC Setup Question

SGDK only sub forum

Moderator: Stef

Post Reply
Jony
Interested
Posts: 12
Joined: Tue Jul 26, 2011 3:16 pm
Location: Portugal

SGCC Setup Question

Post by Jony » Thu Aug 11, 2011 8:27 pm

Hello everyone, just recently i got sick of using SDL and decided that i wanted to try to make software for the Sega Genesis :D

I don't have that much experience yet so excuse me for being a noob when it comes to this :P

Recently i got the SGDK package on my pc and followed online instructions on how to make it work with the Code::Blocks IDE

I'm facing a little problem when trying to compile the samples packaged with it as i keep getting the following error message

Code: Select all

||=== test, default ===|
C:\GenDev\lib\libgendev.a(base.o)||In function `_start_entry':|
base.c|| undefined reference to `main'|
C:\GenDev\lib\libgendev.a(base.o)||In function `_reset_entry':|
base.c|| undefined reference to `main'|
||=== Build finished: 2 errors, 0 warnings ===|
Image


Image

Revenge of the Killer Pixels
"I'm looking for some alien toilet to park my bricks, who's first?"

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

Post by Stef » Fri Aug 12, 2011 9:14 am

Hello !

Did you correctly added your sources files to the project ?
By that i mean you should have your sources correctly localized :
sources files (C, S) : root project directory or "src" directory
includes files (H, INC) : root project directory or "include" directory
resources files (S, ASM, TFC, TFD, PCM, RAW, WAV, BIN, BMP, RC) : root project directory or "res" directory

You should have at least a "main()" method which is the entry point of your program in your sources.

Jony
Interested
Posts: 12
Joined: Tue Jul 26, 2011 3:16 pm
Location: Portugal

Post by Jony » Fri Aug 12, 2011 3:18 pm

Although i kinda feel like an idiot right now it finally worked, thank you ;)



Image

Success!!!
"I'm looking for some alien toilet to park my bricks, who's first?"

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

Post by Stef » Fri Aug 12, 2011 5:50 pm

you're welcome =)

Post Reply