Page 1 of 1

SGCC Setup Question

Posted: Thu Aug 11, 2011 8:27 pm
by Jony
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

Posted: Fri Aug 12, 2011 9:14 am
by Stef
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.

Posted: Fri Aug 12, 2011 3:18 pm
by Jony
Although i kinda feel like an idiot right now it finally worked, thank you ;)



Image

Success!!!

Posted: Fri Aug 12, 2011 5:50 pm
by Stef
you're welcome =)