Linking Lib
Posted: Thu Nov 26, 2009 5:53 pm
Hi, I'm having trouble linking a library I made. I used the example folder to create the lib. he output is a .a file, named "libNexlib.a" the lib prefix was automatic.
* I placed the .a file into a folder called lib including all the header files.
* I placed the lib folder into the arm9 folder. (im using a combined template)
* I changed
to
* I changed
to
* I tried different ways for the LIBDIR
My error is
How do I add a lib. Have a missed a step or doing something wrong above. Any help appreciated!
* I placed the .a file into a folder called lib including all the header files.
* I placed the lib folder into the arm9 folder. (im using a combined template)
* I changed
Code: Select all
LIBS := -lfat -lmm9 -lnds9
Code: Select all
LIBS := -lNexlib -lfat -lmm9 -lnds9"
Code: Select all
LIBDIRS := $(LIBNDS)
Code: Select all
LIBDIRS := $(LIBNDS) ../lib
My error is
Code: Select all
1>c:/devkitpro/devkitarm/bin/../lib/gcc/arm-eabi/4.4.0/../../../../arm-eabi/bin/ld.exe: cannot find -lNexlib