Page 1 of 1

Make Errors

Posted: Sun Aug 10, 2008 6:51 pm
by gamermax5
Hi everyone.

I'm trying to test out libgba to see if it works under dkARM so I wrote a simple soruce file to plot a colored pixel to the screen. And for the time being, I'm using the template makefile for the source. When I navigate to the directory and run make in msys, I get an error in function CIDExit declaring an undefined reference to main.

My guess would be that using main as a starting method is bad but that doesn't seem right. Has anyone encountered this before?

Re: Make Errors

Posted: Tue Aug 12, 2008 12:47 am
by WinterMute
The template projects expect the source code to be in the source directory, laid out in exactly the same way as the supplied examples.

Your problem is placing the source files somewhere that make can't see them thus trying to link object files with no main function.