CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Code fails to compile post MPLAB install

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
steve_smith94



Joined: 21 Mar 2011
Posts: 7
Location: London

View user's profile Send private message

Code fails to compile post MPLAB install
PostPosted: Wed Mar 21, 2012 6:26 am     Reply with quote

Hi,

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

Cheers,

Steve
RF_Developer



Joined: 07 Feb 2011
Posts: 839

View user's profile Send private message

PostPosted: Wed Mar 21, 2012 7:31 am     Reply with quote

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.

RF Developer
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group