<div dir="rtl"><div style="text-align: left;">it didn't work, i don't know how to open the config.... so could you help me again :D<br></div><br><div class="gmail_quote"><div dir="ltr">2010/12/4 Ahmad Sherif <span dir="ltr"><<a href="mailto:ahmad.sherif.public@gmail.com">ahmad.sherif.public@gmail.com</a>></span></div>
<blockquote class="gmail_quote" style="margin: 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); padding-left: 1ex; padding-right: 1ex;"><div dir="ltr">Hi Ahmad,<br><br>I take it that you're using configure, so simply you need to execute this<br>
<div style="margin-left: 40px;">./configure CFLAGS="-std=c99"<br></div>in the terminal. I think that should do it.<div><div></div><div class="h5"><br>
<br><div class="gmail_quote">On Sat, Dec 4, 2010 at 5:57 PM, ahmedandkhaldboys ahmedandkhaldboys <span dir="ltr"><<a href="mailto:ahmedandkhaldboys@gmail.com" target="_blank">ahmedandkhaldboys@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); padding-left: 1ex; padding-right: 1ex;">
<div dir="rtl"><div style="direction: ltr;">hey ahmed</div><div style="direction: ltr;"><br></div><div style="direction: ltr;">so i put</div><div style="direction: ltr;"><span style="font-family: arial,sans-serif; font-size: 10.8333px; border-collapse: collapse;"><div style="margin-left: 40px;">


CFLAGS="-std=c99"<br></div><div>in terminal ? :D </div><div><br></div><div>just take me step by step D:</div></span></div><div><div></div><div><br><div class="gmail_quote"><div dir="ltr">2010/12/4 Ahmad Sherif <span dir="ltr"><<a href="mailto:ahmad.sherif.public@gmail.com" target="_blank">ahmad.sherif.public@gmail.com</a>></span></div>


<blockquote class="gmail_quote" style="margin: 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); padding-left: 1ex; padding-right: 1ex;"><div dir="ltr">Well, it depends. I think if you're using configure then you can pass this to configure<br>


<div style="margin-left: 40px;">CFLAGS="-std=c99"<br></div>but again, it depends on what generates the make files.<br>
<br>Hope it works :) ...<br><br>Bests,<br><font color="#888888">Ahmad Sherif</font><div><div></div><div><br><br><div class="gmail_quote">On Sat, Dec 4, 2010 at 4:49 PM, ahmedandkhaldboys ahmedandkhaldboys <span dir="ltr"><<a href="mailto:ahmedandkhaldboys@gmail.com" target="_blank">ahmedandkhaldboys@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin: 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); padding-left: 1ex; padding-right: 1ex;"><div dir="rtl"><div style="direction: ltr;">


hey ahmed, thank's for your reply </div><div style="direction: ltr;"><br></div><div style="direction: ltr;">i know the method of declaring it in the main function but i just want to use it in the local statement </div>



<div style="direction: ltr;"><br></div><div style="direction: ltr;">i don't know how to change the mode that's another problem :S</div><div style="direction: ltr;"><br></div><div style="direction: ltr;">thanks :)</div>



<div class="gmail_quote"><div dir="ltr">2010/12/4 Ahmad Sherif <span dir="ltr"><<a href="mailto:ahmad.sherif.public@gmail.com" target="_blank">ahmad.sherif.public@gmail.com</a>></span></div><div><div></div><div>
<blockquote class="gmail_quote" style="margin: 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); padding-left: 1ex; padding-right: 1ex;">
<div dir="ltr">Hi Ahmad,<br><br>Simply declare the variable you're using at the beginning of the scope of main function, then you can initialize it in the for loop. In other words, don't do this<br><div style="margin-left: 40px;">





for (int i = 0; i < 9; i++) { ... }<br></div>but do this <br><div style="margin-left: 40px;">int main() {<br>int i;<br>...<br>for (i = 0; i < 9; i++) { ... }<br></div><br>Another solution is to change the mode from c89 to c99, but I don't know how this will affect the rest of the project :).<br>





<br>Bests,<br>Ahmad Sherif<br><br><div class="gmail_quote"><div><div></div><div>On Sat, Dec 4, 2010 at 4:44 AM, ahmedandkhaldboys ahmedandkhaldboys <span dir="ltr"><<a href="mailto:ahmedandkhaldboys@gmail.com" target="_blank">ahmedandkhaldboys@gmail.com</a>></span> wrote:<br>





</div></div><blockquote class="gmail_quote" style="margin: 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); padding-left: 1ex; padding-right: 1ex;"><div><div></div><div><div dir="rtl">




<div style="text-align: left;">
hello guys, i had a little problem here:<br><br><blockquote>make[1]: Entering directory `/home/ahmed/NetBeansProjects/CppApplication_1'<br>main.c:5: error: ‘for’ loop initial declarations are only allowed in C99 mode<br>






"/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/cppapplication_1<br>main.c:5: note: use option -std=c99 or -std=gnu99 to compile your code<br></blockquote></div></div>
<br></div></div>--<br>
Ubuntu-eg mailing list<br>
<a href="mailto:Ubuntu-eg@lists.ubuntu.com" target="_blank">Ubuntu-eg@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg</a><br>
<br></blockquote></div><br></div>
<br>--<br>
Ubuntu-eg mailing list<br>
<a href="mailto:Ubuntu-eg@lists.ubuntu.com" target="_blank">Ubuntu-eg@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg</a><br>
<br></blockquote></div></div></div><br></div>
<br>--<br>
Ubuntu-eg mailing list<br>
<a href="mailto:Ubuntu-eg@lists.ubuntu.com" target="_blank">Ubuntu-eg@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg</a><br>
<br></blockquote></div><br></div></div></div>
<br>--<br>
Ubuntu-eg mailing list<br>
<a href="mailto:Ubuntu-eg@lists.ubuntu.com" target="_blank">Ubuntu-eg@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg</a><br>
<br></blockquote></div><br></div></div></div>
<br>--<br>
Ubuntu-eg mailing list<br>
<a href="mailto:Ubuntu-eg@lists.ubuntu.com" target="_blank">Ubuntu-eg@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg</a><br>
<br></blockquote></div><br></div></div></div>
<br>--<br>
Ubuntu-eg mailing list<br>
<a href="mailto:Ubuntu-eg@lists.ubuntu.com">Ubuntu-eg@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-eg</a><br>
<br></blockquote></div><br></div>