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 > How to solve error when building example ndslib? SOLVED

#44741 - Dark Knight ez - Sat Jun 04, 2005 10:13 pm

Hello everybody.

I'm having some trouble building the examples that come with ndslib. I've got the latest devkitarm (v12), the new ndslib and after that, I run the build.bat of the example "hello_world".

I get the following error:
Quote:
c:\devkitarm\bin\..\lib\gcc\arm-elf\3.4.4\..\..\..\..\arm-elf\bin\ld.exe: cannot find -lnds9"

I have no idea what this -lnds9 is. Is this some kind of argument given to ld.exe? Does anyone know what the problem here is, and more importantly, how to solve it?

Thanks in advance,
Dark Knight ez.


edit:
Never mind. I overlooked the Install.bat of ndslib. I'm stupid like that. Great to finally get it to work though. I had trouble getting to build an nds file all day long.

#44744 - tepples - Sat Jun 04, 2005 10:40 pm

To the GNU linker, the argument -lsomething (dash lowercase-L followed by something) is a command to look for an installed code library called libsomething.a in the library folder. For example, -lnds9 would refer to libnds9.a. And you're correct that a missing library means you haven't installed things properly.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.