Page 1 of 1

arm9 and arm9lib templates

Posted: Fri Mar 02, 2012 1:39 am
by saner
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?

Re: arm9 and arm9lib templates

Posted: Sat Mar 03, 2012 4:53 pm
by saner
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!