# Help please!

**URL:** <https://discourse.libsdl.org/t/help-please/13783>\
**Category:** SDL Development\
**Created:** [August 24, 2006, 8:51pm UTC](https://discourse.libsdl.org/t/help-please/13783 "2006-08-24T20:51:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carlos\_Santa](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/c/b487fb/32.png) [@Carlos\_Santa](https://discourse.libsdl.org/u/Carlos_Santa)\
**Post date:** [August 24, 2006, 8:51pm UTC](https://discourse.libsdl.org/t/help-please/13783/1 "2006-08-24T20:51:05Z")

</div>

Hello all:

if I do this

> sdl-config --cflags

-I/data/omap\_development/a0271087/2430fs\_L8.8/target/include/SDL  
-D\_REENTRANT

> sdl-config --libs  
> -L/data/omap\_development/a0271087/2430fs\_L8.8/target/lib  
> -Wl,-rpath,/data/omap\_development/a0271087/2430fs\_L8.8/target/lib -lSDL  
> -lpthread -lm -ldl -L/data/omap\_development/a0271087/2430fs\_L8.8/target/lib  
> -lX11 -lXext

however when I compile a simple test named sdltest.c this

> arm\_v6\_vfp\_le-gcc sdltest.c -o sdltest `sdl-config --cflags --static-libs`

it gives me an error saying it can’t find  
skipping incompatible  
/data/omap\_development/a0271087/2430fs\_L8.8/target/lib/libSDL.a when  
searching for -lSDL

when searching for -lSDL  
/data/omapts/linux/arm-tc/mv-v6\_vfp\_le-001/bin/…/lib/gcc/armv6fl-montavista-linuxeabi/3.4.3/…/…/…/…/armv6fl-montavista-linuxeabi/bin/ld:  
cannot find -lSDL

any ideas??

thanks,

---

<div class="post-metadata">

**Author:** ![Clemens\_Kirchgattere](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/clemens_kirchgattere/32/191_2.png) [@Clemens\_Kirchgattere](https://discourse.libsdl.org/u/Clemens_Kirchgattere)\
**Post date:** [August 25, 2006, 4:09am UTC](https://discourse.libsdl.org/t/help-please/13783/2 "2006-08-25T04:09:12Z")

</div>

“Carlos Santa” \<santa.cm at [gmail.com](http://gmail.com)\> wrote:

> -L/data/omap\_development/a0271087/2430fs\_L8.8/target/lib

!=

> /data/omapts/linux/arm-tc/mv-v6\_vfp\_le-001/bin/…/lib/gcc/armv6fl-montavista-linuxeabi/3.4.3/…/…/…/…/armv6fl-montavista-linuxeabi/bin/

for me this looks as your cross devel-libs have been moved away from  
their original install location. you could try to hack your sdl-config  
script or pass the correct -L path to gcc by hand, instead of using  
`sdl-config --(static-)libs`

hope this helps …  
clemens
