gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Using nds.h in a library?(SOLVED)

#143867 - yellowstar - Fri Oct 26, 2007 10:41 pm

How do I use nds.h in a library?(arm9)

I tried using the following include,
and adding the second to the INCLUDES var in the makefile.

Code:

#include "nds.h"
$(LIBNDS)/include


Last edited by yellowstar on Mon Oct 29, 2007 9:34 pm; edited 1 time in total

#144128 - silent_code - Mon Oct 29, 2007 12:48 pm

whatever. :^D

Last edited by silent_code on Mon Oct 29, 2007 10:37 pm; edited 1 time in total

#144132 - wintermute - Mon Oct 29, 2007 1:09 pm

Just grab the latest makefile for the arm9lib template from CVS. Sorry, I forgot to keep the LIBDIRS line in that one.

http://devkitpro.cvs.sourceforge.net/devkitpro/examples/nds/templates/arm9lib/Makefile?revision=1.2&view=markup
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#144166 - yellowstar - Mon Oct 29, 2007 9:33 pm

Thanks, wintermute,
it works now!

The only thing this lib needs the libnds include
for, is, timers and IRQ.