hi!<br><br>i try.<br><br><b>jjpn@campinho hello$</b> arm-uclinuxeabi-g++ -mcpu=arm7tdmi -Os -fomit-frame-pointer -fno-common -fno-builtin -Wall -Wl,-elf2flt=&quot;-r&quot; -o testecpp.bin testecpp.cpp -nostdinc++ -l:/opt/uClibc++/lib/libuClibc++.a -I/opt/uClibc++/include<br>
<b>jjpn@campinho hello$</b> file testecpp.bin<br>testecpp.bin: BFLT executable - version 4 ram<br><b>jjpn@campinho hello$ </b><br><br>and send to board, and receive msg.<br><br># ./testecpp.bin<br>Illegal instruction<br># <br>
<br><br><div class="gmail_quote">On Fri, Mar 7, 2008 at 1:42 PM, Khem Raj &lt;<a href="mailto:kraj@mvista.com">kraj@mvista.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<div class="Ih2E3d"><br>
Jorge Pereira wrote:<br>
<br>
<br>
| when a try execute a BIN on board (LPC2468 from embedded artistis) a<br>
| receive this message<br>
|<br>
| *#* cat /proc/version<br>
| Linux version 2.6.11.8-hsc0BEIJING (user@eadevenv) (gcc version 2.95.3<br>
| 20010315 (release)(ColdFire patches - 20010318 from<br>
| <a href="http://fiddes.net/coldfire/%29%28uClinux" target="_blank">http://fiddes.net/coldfire/)(uClinux</a><br>
</div>| &lt;<a href="http://fiddes.net/coldfire/%29%28uClinux" target="_blank">http://fiddes.net/coldfire/%29%28uClinux</a>&gt; XIP and shared lib patches<br>
| from <a href="http://www.snapgear.com/" target="_blank">http://www.snapgear.com/</a>) &lt;<a href="http://www.snapgear.com/%29" target="_blank">http://www.snapgear.com/%29</a>&gt;) #189 Wed<br>
<div class="Ih2E3d">| Dec 26 16:06:12 CET 2007<br>
| *#* ./testecpp.bin<br>
| Illegal instruction<br>
| *#*<br>
|<br>
| Questions!!<br>
|<br>
| 1) why this message appear?<br>
<br>
</div>arm7tdmi is ARMv4T instruction set. Your problem could be that gcc might<br>
not be generating code for this architecture by default instead a newer<br>
one. what happens when you use -mcpu=arm7tdmi<br>
<div class="Ih2E3d"><br>
<br>
<br>
| 2) exist any form to &quot;running a c++ app in this board LPC2468 from<br>
| embedded artists??<br>
|<br>
| My priority is compile using gcc/g++/threads 3.4 or better.<br>
<br>
<br>
</div>- -Khem<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.7 (MingW32)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br>
<br>
iD8DBQFH0XCIUjbQJxVzeZQRAh6uAJ9rEpk7ojmrG+FqoNVLcEQEy1RSqACgioqL<br>
AiIX4dqahXtvITve12iMViw=<br>
=S+Zo<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>+ ---------------------------------------------------------------------------------+<br> Jorge Pereira, From: Olinda/Pe/Brazil<br> Home: &nbsp;<a href="http://www.jorgepereira.com.br/">http://www.jorgepereira.com.br/</a><br>
 E-mail: &nbsp;<a href="mailto:jpereiran@gmail.com">jpereiran@gmail.com</a>, <a href="mailto:jorge@jorgepereira.com.br">jorge@jorgepereira.com.br</a><br> Mobile: +55 (81) 8833-2484<br> My Public Key: <a href="http://www.jorgepereira.com.br/public.pgp">http://www.jorgepereira.com.br/public.pgp</a><br>
+ ---------------------------------------------------------------------------------+<br> &nbsp; &nbsp;&quot;Se você ama alguma coisa, liberte-a;<br> &nbsp; Se ela não voltar a ti, cace-a e mate-a.&quot;<br>+----------------------------------------------------------------------------------+