Sign in

username:

password:



Not a member?

Search piclist



Search tips

Subscribe to piclist



piclist by Keywords

12F675 | 16F628 | 16F84 | 16f877 | 16F877A | 16F88 | 18F458 | ADC | AVR | Bootloader | CAN | CCS | CRC | EAGLE | EEPROM | ICD | ICSP | IDE | JDM | LED | Macros | Microchip | MPLAB | PCB-CAD | PIC10F | Pic12f675 | PIC16F84 | PIC16F84A | PIC16F877 | PIC18 | PIC18F452 | PicBasic | PICC | PICSTART | PWM | RS-485 | RS232 | SMT | SPI | UART | USART | USB | Wireless | Wisp628 | Xilinx


Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | Piclist | C18 Version 3.21 won't use macros?

A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.

C18 Version 3.21 won't use macros? - Dennis Clark - Oct 14 17:33:54 2008

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
------------------------------------

to unsubscribe, go to http://www.yahoogroups.com and follow the instructions



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )


Re: C18 Version 3.21 won't use macros? - Eirik Karlsen - Oct 15 5:10:12 2008

...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


(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: C18 Version 3.21 won't use macros? - Randy Creasi - Oct 23 19:13:22 2008

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?m=161905

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



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: C18 Version 3.21 won't use macros? - William Gebers - Oct 23 19:13:36 2008

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

------------------------------------

to unsubscribe, go to http://www.yahoogroups.com and follow the instructions



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: C18 Version 3.21 won't use macros? - dlc - Oct 23 23:14:13 2008

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?m=161905
>
> 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
-------------------------------------------------

------------------------------------

to unsubscribe, go to http://www.yahoogroups.com and follow the instructions



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )