Reply by dlc October 24, 20082008-10-24
Randy,

Actually, what I didn't notice at first is that the problem occurs on
Windows Server 2003. It has been a documented problem for about 2 years
now, and still not fixed. I have seen others solve it with the (paren)
method too, but this is not a warm fuzzy, what if the problem is not
100% solved but just compiling?

thanks,
DLC

Randy Creasi wrote:
> Dennis,
>
> I had the same issue, but only because I'm trying to force MPLAB to work
> on XP x64, which it does not support. I solved the problem by added
> parentheses to each argument of the macro. See this thread:
> http://forum.microchip.com/printable.aspx?m1905
>
> It really shouldn't be happening on XP Pro, though. Dunno what to tell
> you about that.
>
> - Randy
>
>
> On Tue, Oct 14, 2008 at 5:33 PM, Dennis Clark > > wrote:
>
> Hi all,
>
> I've an oddball question.
>
> I've just installed MPLAB 8.14 and C18 3.21 on a system and tried to
> build my projects. They fail because C18 gives a syntax error on any
> macro that I try to use. I've done this install on two other systems
> and had no problems. They are all XP pro setups too. Has anyone else
> seen this behavior and fixed it? I'm assuming that I must have twiddled
> a knob that I should not have and something broke.
>
> I look forward to any ideas that anyone might have!
>
> thanks,
> DLC
> --
> Dennis Clark
> TTT Enterprises
> --
> Templeman Automation, LLC
> http://www.TemplemanAutomation.com
>

--
-------------
Dennis Clark TTT Enterprises
www.techtoystoday.com
-------------

Reply by William Gebers October 23, 20082008-10-23
Hi Dennis.

I had a similar problem and found a reference to it on the Microchip
forums, although it generally referred to running C18 and MPLAB on non
Win XP Pro systems.

I must confess I didn't end up fixing the problem. It seemed to be
very specific to the type of macro you were using and the specific
version of the compiler and as my macros weren't crucial, I found a
work around.

Static relationships e.g. _WRITE = 0x03 worked for me, but variables
such as CS = PORTBbits.RB3 didn't. I didn't try anything else.

I also saw something about how you call the macro affecting the errors
the compiler generated. There were suggestions to double brackets when
referring to the macro elements.

I am also very interested to hear if you get it to work as I have the
same setup.

Regards

William
2008/10/14 Dennis Clark :
> Hi all,
>
> I've an oddball question.
>
> I've just installed MPLAB 8.14 and C18 3.21 on a system and tried to
> build my projects. They fail because C18 gives a syntax error on any
> macro that I try to use. I've done this install on two other systems
> and had no problems. They are all XP pro setups too. Has anyone else
> seen this behavior and fixed it? I'm assuming that I must have twiddled
> a knob that I should not have and something broke.
>
> I look forward to any ideas that anyone might have!
>
> thanks,
> DLC
> --
> Dennis Clark
> TTT Enterprises

Reply by Randy Creasi October 23, 20082008-10-23
Dennis,

I had the same issue, but only because I'm trying to force MPLAB to work on
XP x64, which it does not support. I solved the problem by added
parentheses to each argument of the macro. See this thread:
http://forum.microchip.com/printable.aspx?m1905

It really shouldn't be happening on XP Pro, though. Dunno what to tell you
about that.

- Randy
On Tue, Oct 14, 2008 at 5:33 PM, Dennis Clark wrote:

> Hi all,
>
> I've an oddball question.
>
> I've just installed MPLAB 8.14 and C18 3.21 on a system and tried to
> build my projects. They fail because C18 gives a syntax error on any
> macro that I try to use. I've done this install on two other systems
> and had no problems. They are all XP pro setups too. Has anyone else
> seen this behavior and fixed it? I'm assuming that I must have twiddled
> a knob that I should not have and something broke.
>
> I look forward to any ideas that anyone might have!
>
> thanks,
> DLC
> --
> Dennis Clark
> TTT Enterprises
>
>
>

--
Templeman Automation, LLC
http://www.TemplemanAutomation.com
Reply by Eirik Karlsen October 15, 20082008-10-15
...Have no idea...

On a different note... Since you're into robotics and stuff maybe you have knowledge of advanced machine vision with PAL cameras?
I want to do (in VB6):
-barrel / fisheye / pincushion lens correction on real-time video
-automatically measure angular and X/Y offsets of objects in real-time

I can do this in BASIC but it'll be way too slow, will have to use MS DirectShow. Had a go at it before but DShow and COM objects
really isn't something I want to mess with anymore.

Toolkits are available; very expensive, vendor specific cameras, no DLL for VB only for C and DotNet.

Dunno what to do. Any ideas ?

Dennis Clark wrote:

> Hi all,
>
> I've an oddball question.
>
> I've just installed MPLAB 8.14 and C18 3.21 on a system and tried to
> build my projects. They fail because C18 gives a syntax error on any
> macro that I try to use. I've done this install on two other systems
> and had no problems. They are all XP pro setups too. Has anyone else
> seen this behavior and fixed it? I'm assuming that I must have twiddled
> a knob that I should not have and something broke.
>
> I look forward to any ideas that anyone might have!
>
> thanks,
> DLC
> --
> Dennis Clark
> TTT Enterprises
--
*******************************************
VISIT MY HOME PAGE:

LAST UPDATED: 23/08/2003
*******************************************
Regards
Eirik Karlsen
Reply by Dennis Clark October 14, 20082008-10-14
Hi all,

I've an oddball question.

I've just installed MPLAB 8.14 and C18 3.21 on a system and tried to
build my projects. They fail because C18 gives a syntax error on any
macro that I try to use. I've done this install on two other systems
and had no problems. They are all XP pro setups too. Has anyone else
seen this behavior and fixed it? I'm assuming that I must have twiddled
a knob that I should not have and something broke.

I look forward to any ideas that anyone might have!

thanks,
DLC
--
Dennis Clark
TTT Enterprises