Reply by AG4DG February 7, 20102010-02-07
Thanks, Steve.

--- In p..., Steve Langstaff wrote:
>
> You are missing a close bracket in delay_1_msec().
>
> Steve L.
>

Reply by Steve Langstaff February 7, 20102010-02-07
You are missing a close bracket in delay_1_msec().

Steve L.
--- On Sun, 7/2/10, AG4DG wrote:

> From: AG4DG
> Subject: [piclist] Declaring a function in PICC-LITE
> To: p...
> Date: Sunday, 7 February, 2010, 17:53
> I'm using MPLAB 8.43 (full
> installation, including PICC 9.70) in WINE
> (wine-1.0.1-174-gc4039bd) in antiX Linux M8.2.
>
> I'm having difficulty with code that worked fine in MPLAB
> v8.10 and
> HI-TECH C PRO v9.60PL3 (free version) in Windows XP.
>
> For the complete code, go to http://www.jasonhsu.com/swrwatt-c.txt
>
> When I click on "Build", the build fails, and I get the
> following
> error messages:
> Error[314]
> Z:\home\jhsu\jhsu-save\jhsu-ham\swrwatt-mplab\swrwatt-pic16f72.c;
> 87.1 ";" expected
> Warning [361]
> Z:\home\jhsu\jhsu-save\jhsu-ham\swrwatt-mplab\swrwatt-pic16f72.c;
> 219.1 function declared implicit int
>
> Line 87 is the "{" on the line following "void
> get_fwd(void)". Line
> 219 is "get_fwd();" in the main function.
>
> It is apparent to me that the compiler refuses to recognize
> my get_fwd
> function declaration. But it didn't seem to have
> difficulty with my
> start function declaration and call.
>
> Where did I go wrong? Where did the compiler go
> wrong? What has
> changed since HI-TECH C PRO v9.60PL3?
>
>
> --
> Jason Hsu
> http://www.jasonhsu.com/swrwatt.html
> http://www.jasonhsu.com/swrwatt-c.txt
> http://www.jasonhsu.com/swrwatt-asm.txt
>
>
>
>
>
> to unsubscribe, go to http://www.yahoogroups.com and follow the
> instructions
Reply by AG4DG February 7, 20102010-02-07
I'm using MPLAB 8.43 (full installation, including PICC 9.70) in WINE
(wine-1.0.1-174-gc4039bd) in antiX Linux M8.2.

I'm having difficulty with code that worked fine in MPLAB v8.10 and
HI-TECH C PRO v9.60PL3 (free version) in Windows XP.

For the complete code, go to http://www.jasonhsu.com/swrwatt-c.txt

When I click on "Build", the build fails, and I get the following
error messages:
Error [314] Z:\home\jhsu\jhsu-save\jhsu-ham\swrwatt-mplab\swrwatt-pic16f72.c;
87.1 ";" expected
Warning [361] Z:\home\jhsu\jhsu-save\jhsu-ham\swrwatt-mplab\swrwatt-pic16f72.c;
219.1 function declared implicit int

Line 87 is the "{" on the line following "void get_fwd(void)". Line
219 is "get_fwd();" in the main function.

It is apparent to me that the compiler refuses to recognize my get_fwd
function declaration. But it didn't seem to have difficulty with my
start function declaration and call.

Where did I go wrong? Where did the compiler go wrong? What has
changed since HI-TECH C PRO v9.60PL3?
--
Jason Hsu
http://www.jasonhsu.com/swrwatt.html
http://www.jasonhsu.com/swrwatt-c.txt
http://www.jasonhsu.com/swrwatt-asm.txt