Well, I'm not familiar with all the options that need to be passed to gcc for compiling. Right now, I'm getting a linker error.
[roti@pella myschemeapp]$ mips-openwrt-linux-gcc -I/home/roti/programs/gambit.mips-openwrt/include -L/home/roti/programs/gambit.mips-openwrt/lib -lgambc main.c main_.c
/tmp/ccHNROa6.o: In function `main':
main_.c:(.text+0x58): undefined reference to `___main_char'
/tmp/ccHNROa6.o:(.data+0x0): undefined reference to `____20___gambc'
/tmp/ccjEdal3.o: In function `___H__20_main':
main.c:(.text+0xe8): undefined reference to `___gstate'
....
Razvan