hi!<br><br>so, i am trying running a simple app using c++, below following a code example.<br><br><b>jjpn@campinho hello$ </b>cat -n testecpp.cpp <br>&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp; #include &lt;stdio.h&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp; #include &lt;stdlib.h&gt;<br>

&nbsp;&nbsp;&nbsp;&nbsp; 3&nbsp; #include &lt;iostream&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; 4<br>&nbsp;&nbsp;&nbsp;&nbsp; 5&nbsp; using namespace std;<br>&nbsp;&nbsp;&nbsp;&nbsp; 6<br>&nbsp;&nbsp;&nbsp;&nbsp; 7&nbsp; class Teste {<br>&nbsp;&nbsp;&nbsp;&nbsp; 8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private:<br>&nbsp;&nbsp;&nbsp;&nbsp; 9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; char texto[32];<br>&nbsp;&nbsp;&nbsp; 10<br>&nbsp;&nbsp;&nbsp; 11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public:<br>&nbsp;&nbsp;&nbsp; 12&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Teste(void);<br>

&nbsp;&nbsp;&nbsp; 13&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ~Teste(void);<br>&nbsp;&nbsp;&nbsp; 14&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static Teste *get(void);<br>&nbsp;&nbsp;&nbsp; 15&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; void setTexto(const char *texto);<br>&nbsp;&nbsp;&nbsp; 16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; const char *getTexto(void);<br>&nbsp;&nbsp;&nbsp; 17&nbsp; };<br>

&nbsp;&nbsp;&nbsp; 18<br>&nbsp;&nbsp;&nbsp; 19&nbsp; Teste::Teste(void)<br>&nbsp;&nbsp;&nbsp; 20&nbsp; {<br>&nbsp;&nbsp;&nbsp; 21<br>&nbsp;&nbsp;&nbsp; 22&nbsp; }<br>&nbsp;&nbsp;&nbsp; 23<br>&nbsp;&nbsp;&nbsp; 24&nbsp; Teste::~Teste(void)<br>&nbsp;&nbsp;&nbsp; 25&nbsp; {<br>&nbsp;&nbsp;&nbsp; 26<br>&nbsp;&nbsp;&nbsp; 27&nbsp; }<br>&nbsp;&nbsp;&nbsp; 28<br>&nbsp;&nbsp;&nbsp; 29&nbsp; Teste *Teste::get(void)<br>&nbsp;&nbsp;&nbsp; 30&nbsp; {<br>&nbsp;&nbsp;&nbsp; 31&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; static Teste singleton;<br>

&nbsp;&nbsp;&nbsp; 32&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return &amp;singleton;<br>&nbsp;&nbsp;&nbsp; 33&nbsp; }<br>&nbsp;&nbsp;&nbsp; 34<br>&nbsp;&nbsp;&nbsp; 35&nbsp; void Teste::setTexto(const char *texto)<br>&nbsp;&nbsp;&nbsp; 36&nbsp; {<br>&nbsp;&nbsp;&nbsp; 37&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strncpy(&amp;this-&gt;texto[0], texto, sizeof(this-&gt;texto));<br>&nbsp;&nbsp;&nbsp; 38&nbsp; }<br>

&nbsp;&nbsp;&nbsp; 39<br>&nbsp;&nbsp;&nbsp; 40&nbsp; const char *Teste::getTexto(void)<br>&nbsp;&nbsp;&nbsp; 41&nbsp; {<br>&nbsp;&nbsp;&nbsp; 42&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return &amp;this-&gt;texto[0];<br>&nbsp;&nbsp;&nbsp; 43&nbsp; }<br>&nbsp;&nbsp;&nbsp; 44<br>&nbsp;&nbsp;&nbsp; 45&nbsp; int main(int main, char *argv[])<br>&nbsp;&nbsp;&nbsp; 46&nbsp; {<br>&nbsp;&nbsp;&nbsp; 47&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Teste&nbsp;&nbsp; teste;<br>

&nbsp;&nbsp;&nbsp; 48&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Teste *pteste = new Teste();<br>&nbsp;&nbsp;&nbsp; 49<br>&nbsp;&nbsp;&nbsp; 50&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Teste::get()-&gt;setTexto(&quot;Jorge Pereira: singleton&quot;);<br>&nbsp;&nbsp;&nbsp; 51&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pteste-&gt;setTexto(&quot;Jorge Pereira: pointer&quot;);<br>&nbsp;&nbsp;&nbsp; 52&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; teste.setTexto(&quot;Jorge Pereira: static&quot;);<br>

&nbsp;&nbsp;&nbsp; 53<br>&nbsp;&nbsp;&nbsp; 54&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cout &lt;&lt; &quot;Nome: singleton = &quot; &lt;&lt; Teste::get()-&gt;getTexto() &lt;&lt; endl;<br>&nbsp;&nbsp;&nbsp; 55&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cout &lt;&lt; &quot;Nome: pointer&nbsp;&nbsp; = &quot; &lt;&lt; pteste-&gt;getTexto()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt; endl;<br>

&nbsp;&nbsp;&nbsp; 56&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cout &lt;&lt; &quot;Nome: static&nbsp;&nbsp;&nbsp; = &quot; &lt;&lt; teste.getTexto()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;&lt; endl;<br>&nbsp;&nbsp;&nbsp; 57<br>&nbsp;&nbsp;&nbsp; 58&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf(&quot;Hello World utilizando printf()\n&quot;);<br>&nbsp;&nbsp;&nbsp; 59<br>&nbsp;&nbsp;&nbsp; 60&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; delete pteste;<br>

&nbsp;&nbsp;&nbsp; 61<br>&nbsp;&nbsp;&nbsp; 62&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;<br>&nbsp;&nbsp;&nbsp; 63&nbsp; }<br>&nbsp;&nbsp;&nbsp; 64<br><b>jjpn@campinho hello$</b> <br><br>i am using a gcc/g++ below.<br><b>jjpn@campinho hello$</b> arm-uclinuxeabi-g++ -v<br>Using built-in specs.<br>Target: arm-uclinuxeabi<br>

Configured with: /scratch/paul/lite/uclinux/src/gcc-4.2/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-uclinuxeabi --enable-threads --disable-libmudflap --disable-libssp --disable-libgomp --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --disable-shared --with-pkgversion=CodeSourcery Sourcery G++ Lite 2007q3-51 --with-bugurl=<a href="https://support.codesourcery.com/GNUToolchain/" target="_blank">https://support.codesourcery.com/GNUToolchain/</a> --disable-nls --prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/arm-uclinuxeabi/libc --with-build-sysroot=/scratch/paul/lite/uclinux/install/arm-uclinuxeabi/libc --enable-poison-system-directories --with-build-time-tools=/scratch/paul/lite/uclinux/install/arm-uclinuxeabi/bin --with-build-time-tools=/scratch/paul/lite/uclinux/install/arm-uclinuxeabi/bin<br>

Thread model: single<br>gcc version 4.2.1 (CodeSourcery Sourcery G++ Lite 2007q3-51)<br><b>jjpn@campinho hello$</b><br><br>compiling...<br><br><b>jjpn@campinho hello$</b> arm-uclinuxeabi-g++ -Os -pipe -fno-common -fno-builtin -Wall -nostdinc++ -I/opt/uClibc++/include -l:/opt/uClibc++/lib/libuClibc++.a -L/opt/uClibc++/lib/ -o testecpp.bin testecpp.cpp -Wl,-elf2flt=&quot;-r&quot;<br>

<b>jjpn@campinho hello$ </b>file testecpp.bin<br>testecpp.bin: BFLT executable - version 4 ram<br><b>jjpn@campinho hello$ </b>ls -lh testecpp.bin<br>-rw-r--r-- 1 jjpn jjpn 61K 2008-03-07 13:19 testecpp.bin<br><b>jjpn@campinho hello$</b><br>

<br>when a try execute a BIN on board (LPC2468 from embedded artistis) a receive this message<br><br><b>#</b> cat /proc/version<br>Linux version 2.6.11.8-hsc0BEIJING (user@eadevenv) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from <a href="http://fiddes.net/coldfire/%29%28uClinux" target="_blank">http://fiddes.net/coldfire/)(uClinux</a> XIP and shared lib patches from <a href="http://www.snapgear.com/%29" target="_blank">http://www.snapgear.com/)</a>) #189 Wed Dec 26 16:06:12 CET 2007<br>

<b>#</b> ./testecpp.bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>Illegal instruction<br><b>#</b> <br><br>Questions!!<br><br>1) why this message appear?<br>2) exist any form to &quot;running a c++ app in this board LPC2468 from embedded artists??<br><br>

My priority is compile using gcc/g++/threads 3.4 or better.<br><br>thankz a lot!<br>[]s<br><br><br><br><div class="gmail_quote">On Fri, Mar 7, 2008 at 12:16 PM, Martin Guy &lt;<a href="mailto:martinwguy@yahoo.it" target="_blank">martinwguy@yahoo.it</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;">Hi!<br>
 &nbsp; linux-arm is the list for linux kernel developers, not compilers or<br>
cross-compilers.<br>
What exactly are you trying to do? On what machine do you want to run<br>
the compiler? On the arm board itself?<br>
<font color="#888888"><br>
 &nbsp; M<br>
</font></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/" target="_blank">http://www.jorgepereira.com.br/</a><br>

 E-mail: &nbsp;<a href="mailto:jpereiran@gmail.com" target="_blank">jpereiran@gmail.com</a>, <a href="mailto:jorge@jorgepereira.com.br" target="_blank">jorge@jorgepereira.com.br</a><br> Mobile: +55 (81) 8833-2484<br> My Public Key: <a href="http://www.jorgepereira.com.br/public.pgp" target="_blank">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>+----------------------------------------------------------------------------------+