arm9 and arm9lib templates

Post Reply
saner
Posts: 5
Joined: Fri Jun 03, 2011 7:30 pm

arm9 and arm9lib templates

Post by saner » Fri Mar 02, 2012 1:39 am

I have a problem using arm9 and arm9lib templates provided with devkitPro.

I've created a simple library using arm9lib template, then I placed .a file into lib folder inside a project based on the arm9 template.
The functions defined in the library are not visible in the application.

What is the appropriate way to use those templates together?

saner
Posts: 5
Joined: Fri Jun 03, 2011 7:30 pm

Re: arm9 and arm9lib templates

Post by saner » Sat Mar 03, 2012 4:53 pm

It is necessary to modify two lines in Makefile used by the application:

1. Add your project's directory to a list of directories with lib folder:

Code: Select all

LIBDIRS	:= $(LIBNDS) $(CURDIR)
2. Add name of your library to this line:

Code: Select all

LIBS	:= -lnds9 -lname_of_your_lib
And that is all!

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests