<br><br><div class="gmail_quote">On Tue, Apr 13, 2010 at 9:54 AM, Daniel Maier <span dir="ltr"><<a href="mailto:maierd@informatik.uni-freiburg.de">maierd@informatik.uni-freiburg.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
Any suggestions?<br></blockquote><div><br>Can you compile a simple program like just:<br><br><span style="font-family: courier new,monospace;">#include <stdio.h></span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">int main(int argc, char *argv[])</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">{</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">   printf("hello world\n");</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">   return 0;</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">}</span><br><br>with your cross-compile tools?<br><br>When building GCC, you can hardcode where are the libc headers and other stuff. You may check that every path are correct with "gcc -print-search-dirs" and "gcc -dumpspecs".<br>

<br>In case you have problem compiling a basic program, i suggest that you strace gcc... you will see where it looks for which files and then fix the path.<br><br><span style="font-family: courier new,monospace;">$ strace -F gcc -o test test.c</span><br>

<br><span style="font-family: arial,helvetica,sans-serif;">(-F used to follow the subprocess like ld, etc)<br></span> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


<br>
Thanks,<br>
Dan<br>
<br>
P.S. and good luck with the exams :)</blockquote></div><br>Thanks!<br><br clear="all"><br>-- <br>Benjamin Vanheuverzwijn<br><br>Google Talk/Jabber - <a href="mailto:bvanheu@gmail.com">bvanheu@gmail.com</a><br><a href="http://vanheu.ca">http://vanheu.ca</a><br>

<br>