The same problem! :-(<br>
<br>
-----<br>
/usr/bin/ld: warning: link.res contains output sections; did you forget
-T?<br>
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/crtbegin.o when searching for
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/crtbegin.o<br>
/usr/bin/ld: cannot find /usr/lib/gcc/x86_64-linux-gnu/4.4.3/crtbegin.o<br>
ycv.lpr(23,1) Error: Error while linking<br>
ycv.lpr(23,1) Fatal: There were 1 errors compiling module, stopping<br>
-----<br><br><br>My fpc.cfg<br>---<br># set binutils prefix<br><br>#IFNDEF CPUI386<br>#IFNDEF CPUAMD64<br>#DEFINE NEEDCROSSBINUTILS<br>#ENDIF<br>#ENDIF<br><br>#ifdef cpui386<br> -Xd<br> -Fl/usr/lib32<br> -Fl/lib32<br>#endif<br>
<br><br>#IFNDEF linux<br>#DEFINE NEEDCROSSBINUTILS<br>#ENDIF<br><br><br>#IFDEF FPC_CROSSCOMPILING<br>#IFDEF NEEDCROSSBINUTILS<br> -XP$fpctarget-<br>#ENDIF NEEDCROSSBINUTILS<br>#ENDIF<br><br>---<br><br>2010/9/15 Torsten Bonde Christiansen <span dir="ltr"><<a href="mailto:tc@epidata.dk">tc@epidata.dk</a>></span><br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im"><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Error Message:<br>
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?<br>
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/crtbegin.o when searching for /usr/lib/gcc/x86_64-linux-gnu/4.4.3/crtbegin.o<br>
/usr/bin/ld: cannot find /usr/lib/gcc/x86_64-linux-gnu/4.4.3/crtbegin.o<br>
ycv.lpr(23,1) Error: Error while linking<br>
<br>
</blockquote></div>
This is probably because you havn't set up the fpc.cfg correctly. Check that there is a part that looks like this:<br>
<br>
#ifdef cpui386<br>
-Xd<br>
-Fl/lib32<br>
-Fl/usr/lib32<br>
#endif<br>
<br>
It informs the compiler to skip the regular library paths, but to search the 32-bit ones instead.<br>
<br>
Also beware that you may need to manually create som symbolic link for some of the gcc lib files, fpc expects older version not present in ubuntu 10.04, but creating symbolic links does the trick.<br>
<br>
Hope that helps as a start.<br>
<br>
Kind regards,<br>
Torsten Bonde Christiansen.<br><font color="#888888">
<br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org" target="_blank">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</font></blockquote></div><br>