Make Errors

support for the ARM toolchain
Post Reply
gamermax5
Posts: 1
Joined: Sun Aug 10, 2008 6:47 pm

Make Errors

Post by gamermax5 » Sun Aug 10, 2008 6:51 pm

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?

WinterMute
Site Admin
Posts: 1404
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Make Errors

Post by WinterMute » Tue Aug 12, 2008 12:47 am

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.
Help keep devkitPro toolchains free, Donate today

devkitPro IRC support
Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests