I am getting follwing error while compiling
example project for pic18 using c18 compiler
pl help me
--------------------------------------------------------Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F452 "main1.c" -fo="main1.o"
/i"F:\rtos\Source\include" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
F:\rtos\Source\include\portable.h:95:Error: syntax error
Halting build on first failure as requested.
BUILD FAILED: Fri Dec 17 05:30:40 2004
--------------------------------------------------------
It looks like your problem is that the definition MPLAB_PIC18F_PORT is not defined. If this is not defined then the correct portmacro.h file will not get included, the type portSTACK_TYPE will not get defined, and you will get the error as per your post.
The demo projects should have this defined already. Below is the sample command line I get when building the demo exactly as downloaded.
The paths require changing in the project file unfortunately. Have you changed anything else other than this? With most ports it is important that the compiler switches and definitions are all set up correctly. The demo project files should be used as examples.