<div dir="ltr"><div>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.<br><br><br>[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<br>
/tmp/ccHNROa6.o: In function `main':<br>main_.c:(.text+0x58): undefined reference to `___main_char'<br>/tmp/ccHNROa6.o:(.data+0x0): undefined reference to `____20___gambc'<br>/tmp/ccjEdal3.o: In function `___H__20_main':<br>
main.c:(.text+0xe8): undefined reference to `___gstate'<br>....<br><br><br></div>Razvan<br><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 27 October 2013 19:14, Jeff Read <span dir="ltr"><<a href="mailto:bitwize@gmail.com" target="_blank">bitwize@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Sun, Oct 27, 2013 at 1:07 PM, Răzvan Rotaru <<a href="mailto:razvan.rotaru@gmail.com">razvan.rotaru@gmail.com</a>> wrote:<br>

> Hi,<br>
><br>
> I'd like to cross compile a scheme app for OpenWRT (MIPS architecture). Has<br>
> anyone attempted to do this? How can I approach this?<br>
><br>
> The main problem is that I can't have a running MIPS system in a virtual<br>
> machine. So cross-compilation seems to be the only option.<br>
><br>
<br>
</div></div>I haven't tackled this sort of problem myself, but presumably you<br>
would use gsc -link to compile the Scheme files to C and generate a<br>
link file, and then pass those to your C cross-compiler.<br>
<span class="HOEnZb"><font color="#888888"><br>
--Jeff<br>
</font></span></blockquote></div><br></div>