Mail Archives: djgpp/2002/04/18/02:00:25
Problem not solved, i compiled the program below and got error's one time,
and it compiles fine the next. Iv'e been pulling my hair out thinking i got
really bad at typing even when i would type a program 3 time's in a row to
make sure it was correct. We'll i'm stumped, iv'e been happily using djgpp
for month's now, what happened. Any help would be most appreaciated.
strat
#include <stdio.h>
int main()
{
int a, b, c;
a = 5;
b = 7;
c = a + b;
printf("%d + %d = %d\n", a, b, c);
return 0;
}
At the prompt i type:
c:\djgpp\bin>gcc c:\djgpp\tmp\like.c -o c:\djgpp\wtf\add.exe
--
"I don't have to KNOW people that inspire me, i just have to KNOW that
people that inspire me exsist" Caroline barcher
"Stratis Aftousmis" <lsdguru78 AT hotmail DOT com> wrote in message
news:_6sv8.10042$R33 DOT 424752 AT typhoon DOT austin DOT rr DOT com...
> Nevermind, C IS case sensitive.Problem solved
>
>
> --
> "I don't have to KNOW people that inspire me, i just have to KNOW that
> people that inspire me exsist" Caroline barcher
>
>
>
>
>
>
>
> "Stratis Aftousmis" <lsdguru78 AT hotmail DOT com> wrote in message
> news:CEpv8.10572$oj5 DOT 381796 AT typhoon DOT austin DOT rr DOT com...
> > Hello, i have just started learning a new langauge c. But for some
reason
> i
> > get alot of compile time error's even when there's nothing wrong with
the
> > code, for example this code:
> >
> > #include <stdio.h>
> >
> > int main()
> > {
> > printf("This is output from my first program!\n");
> > return 0;
> > }
> >
> > //sometime's it compiles, sometime's not, wonder why.
> >
> > wouldn't compile for a while, then all the sudden it does, i had little
to
> > no problem's with c++, and now that i changed there's problem's although
i
> > can't see how a change in languge would create problem's.
> > I'm confused, help anyone?
> > thank's
> > strat
> >
> >
> > --
> > "I don't have to KNOW people that inspire me, i just have to KNOW that
> > people that inspire me exsist" Caroline barcher
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>
- Raw text -