Julien Nadeau <[EMAIL PROTECTED]> writes:

> 
> On Mon, Jun 30, 2008 at 01:19:05AM +0000, Jason Schmidlapp wrote:
> > 
> > I'm working with Agar on the PSP platform.  The library compiles OK, 
> > but I get some errors when I go to link it with a simple test 
> > application  of mine.  Here is an example of the errors I get:
> > 
> > usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib    
> >      /libag_gui.a(keymap_ascii.o):
> > In function `EmulateShiftUSKBD':
> > keymap_ascii.c:(.text+0x300): undefined reference to 
> >     `__ctype_b_loc'
> > keymap_ascii.c:(.text+0x410): undefined reference to 
> >     `__ctype_toupper_loc'
> > 
....
> 
> Can you successfully compile and link a test program which uses some
> ctype functions? Maybe it is a problem with libc. I think toupper(),
> etc. is normally inline, but __ctype_b_loc is a global array which
> should be defined in libc.
> 


I figured out the problem.  The ctype.h that was being included 
was NOT the one for my target (PSP) toolchain 
[/usr/local/pspdev/include/ctype.h], but rather my local host
 copy [/usr/include/ctype.h].

I don't necessarily understand BSDBuild that well, but it 
looks like configure was setting JPEG_FLAGS to /usr/include 
(all the other include paths were correct).

_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html

Reply via email to