MACOSX game help!

I am trying to compile SDL_image and SDL_console on MacOSX. SDL_image compiles
fine and the example runs ok. But when I compile SDL_console it says it can’t
find SDL_image.

/usr/bin/ld: Undefined symbols:
make: *** [] Error 1

Is there any tool/checkers which would be helpful for linking in dyn.