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 > undefined reference to `__io_dsisd'

#176133 - headspin - Fri Apr 15, 2011 1:54 pm

I get the follow error when trying to compile with the latest devkitPro

Quote:
c:/Users/davem/projects/devkitpro/libnds-master/libfat/nds/../source/disc.c:93: undefined reference to `__io_dsisd'


Any ideas?
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game

#176134 - elhobbs - Fri Apr 15, 2011 5:45 pm

latest svn or latest install?

#176137 - headspin - Sat Apr 16, 2011 4:41 am

I used the installer. I also tried overwriting with the latest libnds and libfat libraries. Haven't tried the SVN but I think it's something WM should check out anyway.
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game

#176140 - elhobbs - Sat Apr 16, 2011 4:14 pm

I am using the latest version from the installer and I do not have this error. did you try a clean and build? are you using any libs that might need to be rebuilt as well? you should also make sure libfat is before libnds for libs in your makefile
Code:
LIBS   :=   -lfat -lnds9

#176157 - headspin - Wed Apr 20, 2011 7:29 am

Moving libfat worked, thanks elhobbs.
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game

#176334 - headspin - Wed Jun 29, 2011 1:12 pm

I'm getting this error in another project that doesn't use libnds. Any ideas on that?
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game

#176335 - wintermute - Wed Jun 29, 2011 3:30 pm

You're not compiling anything with the latest devkitPro. devkitPro is a vendor and not something that has versions or the ability to compile anything. What you're compiling with is devkitARM.


The solution to your first problem should have been a big clue really ...

libfat depends on libnds.

How long is it since you updated anyway? the dldi stub was moved into libnds quite some time ago.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#176338 - headspin - Thu Jun 30, 2011 6:00 am

wintermute wrote:
You're not compiling anything with the latest devkitPro. devkitPro is a vendor and not something that has versions or the ability to compile anything. What you're compiling with is devkitARM.


If I had a dollar...

wintermute wrote:
libfat depends on libnds.


The two games in question are coded in ARM asm and don't depend on libnds. So now I have to link libnds for a few functions that libfat depends on? How much will libnds add to the binary?

wintermute wrote:
How long is it since you updated anyway? the dldi stub was moved into libnds quite some time ago.


My latest games are coded in C++ using libnds so it's not a problem. My two previous games don't though.
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game

#176341 - wintermute - Thu Jun 30, 2011 12:46 pm

headspin wrote:
wintermute wrote:
You're not compiling anything with the latest devkitPro. devkitPro is a vendor and not something that has versions or the ability to compile anything. What you're compiling with is devkitARM.


If I had a dollar...


You'd donate it to devkitPro for providing wonderful things like devkitARM ;o)

Quote:

wintermute wrote:
libfat depends on libnds.


The two games in question are coded in ARM asm and don't depend on libnds. So now I have to link libnds for a few functions that libfat depends on? How much will libnds add to the binary?


the few functions that libfat depends on ...

if you're really that bothered then grab the source for said functions & put them in your project.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#176344 - headspin - Thu Jun 30, 2011 2:28 pm

wintermute wrote:
You'd donate it to devkitPro for providing wonderful things like devkitARM ;o)


Okay I just did, and it'd be more if I was actually making money from it ;)
_________________
Warhawk DS | Manic Miner: The Lost Levels | The Detective Game