Page 1 of 1

Compiler

Posted: Fri Oct 24, 2008 9:19 pm
by gaprice
According to several tutorials on this sit you must use #pragma origin 4 at the start of source code in order to make sure there is no overlap with bloader.

Using CCS c compiler i get this error

*** Error 7 "Controller.c" Line 15(9,15): Invalid Pre-Processor directive
*** Error 43 "Controller.c" Line 15(16,17): Expecting a declaration
2 Errors, 0 Warnings.

when trying to compile this :

#include "16F877A.h" //mcu select
#pragma origin 4

void main()
{
while(1)
{
OUTPUT_HIGH(PIN_B0);
}
}

what is going on here?

Posted: Thu Nov 19, 2009 12:40 am
by theatrus
dellsmaith, your post has nothing to do with the original topic, don't hijack threads :-).

SparkFun is also not the appropriate place for general Java questions, I would suggest StackOverflow for that. But, since I'm weak at heart, I would suggest you

a) Install the JDK (not just the JRE)
b) Make sure the JDK is in your PATH

Which should solve your basic computer issues with commands not being found.

Posted: Fri Nov 20, 2009 6:05 am
by phalanx
theatrus wrote:dellsmaith, your post has nothing to do with the original topic, don't hijack threads :-).
He was one of the R4i software spammers. If R4i is in the signature, it's spam!

-Bill