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.

Coding > lib usage

#2913 - col - Fri Feb 14, 2003 2:00 pm

Hi , I'm having some problems using a custom library in my link process.

I have built the library with:
arm-agb-elf-ar rcs myLib.a foo.o bar.o etc.

I have also tried:
arm-agb-elf-ar rc myLib.a foo.o bar.o etc.
arm-agb-elf-ranlib myLib.a


When I try to use it with devkitadv (windows):
-L pathToMyLib or -lmyLib.a
It dosn't work work.
I am including headers for the individual .o files that make up the library.
The headers are being accessed in the compile process, it's just linking that's messed up.
(I have a feeling that it might be a cygwin issue as when i use -lmyLib.a, gcc can never find it!)

any suggestions?

cheers

col