EmbeddedRelated.com
Forums
Memfault Beyond the Launch

hitech c error

Started by siva...@gmail.com December 31, 2008
HAI TO ALL,
I have coded my program for a adc and a stepper motor. I use 3 functions for this. I get an error.....................

Error [285] F:\pic solar panel\picsolar.c; 22.1 no identifier in declaration
Warning [374] F:\pic solar panel\picsolar.c; 22.1 missing basic type; int assumed
Error [314] F:\pic solar panel\picsolar.c; 22.1 ";" expected
Error [285] F:\pic solar panel\picsolar.c; 23.1 no identifier in declaration
Warning [374] F:\pic solar panel\picsolar.c; 23.1 missing basic type; int assumed
Error [314] F:\pic solar panel\picsolar.c; 23.1 ";" expected

Please help me out to solve this problem.

Thanks,
siva

Siva,

It looks like error 314 is saying you are missing a semicolon. But
you really need to post your code to figure out what the other
problems are.

James

--- In p..., siva.gram@... wrote:
>
> HAI TO ALL,
> I have coded my program for a adc and a stepper motor. I use 3
functions for this. I get an error.....................
>
> Error [285] F:\pic solar panel\picsolar.c; 22.1 no identifier in
declaration
> Warning [374] F:\pic solar panel\picsolar.c; 22.1 missing basic
type; int assumed
> Error [314] F:\pic solar panel\picsolar.c; 22.1 ";" expected
> Error [285] F:\pic solar panel\picsolar.c; 23.1 no identifier in
declaration
> Warning [374] F:\pic solar panel\picsolar.c; 23.1 missing basic
type; int assumed
> Error [314] F:\pic solar panel\picsolar.c; 23.1 ";" expected
>
> Please help me out to solve this problem.
>
> Thanks,
> siva
>

You might find you only have one or two errors and they cause the
compiler to get upset and report more errors.

I suggest you look at lines 22 and 23 of picsolar.c and see if they
are missing the semicolon at the end of the line, if so put them in
and recompile.

Colin

:::: Error [285] F:\pic solar panel\picsolar.c; 22.1 no identifier
:::: in
:: declaration
:::: Warning [374] F:\pic solar panel\picsolar.c; 22.1 missing basic
:: type; int assumed
:::: Error [314] F:\pic solar panel\picsolar.c; 22.1 ";" expected
:::: Error [285] F:\pic solar panel\picsolar.c; 23.1 no identifier
:::: in
:: declaration
:::: Warning [374] F:\pic solar panel\picsolar.c; 23.1 missing basic
:: type; int assumed
:::: Error [314] F:\pic solar panel\picsolar.c; 23.1 ";" expected

--
cdb, c...@btech-online.co.uk on 1/01/2009

Web presence: www.btech-online.co.uk

Hosted by: www.1and1.co.uk/?k_idy88359

Don't assume people do things you don't like just to hurt you

--- In p..., siva.gram@... wrote:
>
> HAI TO ALL,
> I have coded my program for a adc and a stepper motor. I use 3
functions for this. I get an error.....................
>
> Error [285] F:\pic solar panel\picsolar.c; 22.1 no identifier in
declaration
> Warning [374] F:\pic solar panel\picsolar.c; 22.1 missing basic
type; int assumed
> Error [314] F:\pic solar panel\picsolar.c; 22.1 ";" expected
> Error [285] F:\pic solar panel\picsolar.c; 23.1 no identifier in
declaration
> Warning [374] F:\pic solar panel\picsolar.c; 23.1 missing basic
type; int assumed
> Error [314] F:\pic solar panel\picsolar.c; 23.1 ";" expected
>
> Please help me out to solve this problem.
>
> Thanks,
> siva

Sometimes these errors occur a couple of lines ahead of where they are
reported. Other times it is a bizarre definition that causes the error.

Try commenting out some lines to cause THIS error to go away. You
will have other errors due to the missing definition but at least you
can narrow it down to exactly the line with the error.

Richard

>


Memfault Beyond the Launch