[Cialug] Using GCC
Dave Weis
djweis at internetsolver.com
Sun Apr 8 07:38:37 CDT 2007
On Sun, 8 Apr 2007, Todd Walton wrote:
> I'm trying to compile the below, but I obviously don't know the first
> thing about using GCC. How do I compile this?:
>
> #include<stdio.h>
> int main(int argc, char *argv[])
> {
> int i,j,k
** Put a semicolon at the end of that line.
> unsigned long acc=0;
> for(i=0;i<10000;i++)
> for(j=0;j<5000;j++)
> for(k=0;k<4;k++)
> acc+=k;
> printf("acc = %lu\n",acc);
> return 0;
> }
>
--
Dave Weis
djweis at internetsolver.com
http://www.internetsolver.com/
More information about the Cialug
mailing list