i tried all ways. #include <stdio.h> #include<stdio.h> #include<stdio. h> #include<stdio .h> all of them are still underlined. and there is a question mark left of each of these lines and it says : unresolved inclusion. best regards
--- In [email protected], Lori Nagel <jas...@...> wrote: > > > > First of all make sure there is no space between the stdio and the h > as in > #include<stdio.h> and not > #include<stdio. h> > > then you should not be using print, but rather printf, because C doesn't come > with a print function. > so use > printf("why doesn't compile"); > rather than > print("why doesn't compile"); > > > > ________________________________ > From: ruhatadiyaman <ruhatadiya...@...> > To: [email protected] > Sent: Sunday, May 17, 2009 12:53:52 AM > Subject: [c-prog] Re: a problem with eclipse > > > > > > it was my fault of course. at my first message i have writen as > 'include<stdio. h>' but in fact i was writing '#include<stdio. h>' as you > say. but it is still underlined as a syntax error. the code is this; > > #include<stdio. h> > int main() > { > print("why doesn't compile"); > } > > it gives syntax error only for include line > thanks again > best regards > --- In c-p...@yahoogroups. com, "Dan Presley" <dpresley@ .> wrote: > > > > If "include<stdio. h>" is an actual quote from your source code, you > forgot to precede the statement with the pre-processor directive -- the > '#' symbol, e .g '#include<stdio. h>'. That maybe why your statement was > flagged with a syntax error. Hope this helps. Cheers. > > > > [Non-text portions of this message have been removed] >
