I'm pretty stuck here. I have some code that compiled in CCS PCW v4.124 this morning. I then needed to program my hardware.
Previously I used MPLAB to program earlier versions. However, I have recently installed windows 7 on my machine and had to re-install MPLAB.
The install went ok, but now the code will not compile. Even the earlier version (that programmed ok and the unit worked to spec) fails in the same manner:
Quote:
Error 128 "MyPath\16F917.h" Line 204(2,6): A #Device required before this line.
Anyone know why installing MPLAB caused this?
Cheers,
Steve
RF_Developer
Joined: 07 Feb 2011 Posts: 839
Posted: Wed Mar 21, 2012 7:31 am
Maybe, are you on a 64bit version of seven?
The problem is that the driver and device search paths need to change. They used to be somewhere in Program Files, they are now in Program Files (x86) and so the compiler cannot find the device include files. So you need to check your project's search paths.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum