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

moved compiler to a different machine

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



Joined: 10 Feb 2011
Posts: 241
Location: Vancouver, BC

View user's profile Send private message

moved compiler to a different machine
PostPosted: Tue Dec 20, 2011 2:45 pm     Reply with quote

Hi There,

I moved the compiler to a different machine, I simply copied the whole PICC directory over and adjusted the paths in my .mcp project file. MPLAB was fine with that after telling my project where PICC is located on the new machine. However, when I compile my project I get this:
Code:
Executing: "C:\Program Files (x86)\PICC\Ccsc.exe" +FH "MCU2.c" +DF +LN +T +A +M +Z +Y=9 +EA  #__18F86K22=TRUE
*** Error 18 "C:\Users\reggler\Documents\REG1.5\MCU2~\MCU2.h" Line 1(9,21): File can not be opened
    Not in ";C:\Users\reggler\Documents\REG1.5\MCU2~\18F86K22.h"
    Not in project "C:\Users\reggler\Documents\REG1.5\MCU2~\18F86K22.h"
*** Error 128 "C:\Users\reggler\Documents\REG1.5\MCU2~\MCU2.h" Line 3(34,55): A #DEVICE required before this line
*** "C:\Users\reggler\Documents\REG1.5\MCU2~\MCU2.h" Line 3: Error #128: A #DEVICE required before this line
*** "C:\Users\reggler\Documents\REG1.5\MCU2~\MCU2.h" Line 5: Error #128: A #DEVICE required before this line
*** "C:\Users\reggler\Documents\REG1.5\MCU2~\MCU2.h" Line 6: Error #128: A #DEVICE required before this line
*** "C:\Users\reggler\Documents\REG1.5\MCU2~\MCU2.h" Line 7: Error #128: A #DEVICE required before this line
*** "C:\Users\reggler\Documents\REG1.5\MCU2~\MCU2.h" Line 8: Error #128: A #DEVICE required before this line
*** "C:\Users\reggler\Documents\REG1.5\MCU2~\MCU2.h" Line 9: Error #128: A #DEVICE required before this line
*** "C:\Users\reggler\Documents\REG1.5\MCU2~\MCU2.h" Line 10: Error #128: A #DEVICE required before this line
*** "C:\Users\reggler\Documents\REG1.5\MCU2~\MCU2.h" Line 11: Error #128: A #DEVICE required before this line
*** "C:\Users\reggler\Documents\REG1.5\MCU2~\MCU2.h" Line 12: Error #128: A #DEVICE required before this line
*** "C:\Users\reggler\Documents\REG1.5\MCU2~\MCU2.h" Line 13: Error #128: A #DEVICE required before this line
*** "C:\Users\reggler\Documents\REG1.5\MCU2~\MCU2.h" Line 22: Error #100: USE parameter value is out of range   Not a number: PIN_C6
*** "C:\Users\reggler\Documents\REG1.5\MCU2~\MCU2.h" Line 23: Error #100: USE parameter value is out of range   Not a number: PIN_G1
*** "C:\Users\reggler\Documents\REG1.5\MCU2~\MCU2.h" Line 24: Error #100: USE parameter value is out of range   Not a number: PIN_C4
*** "C:\Users\reggler\Documents\REG1.5\MCU2~\MCU2.h" Line 26: Error #128: A #DEVICE required before this line
      16 Errors,  0 Warnings.
Halting build on first failure as requested.
BUILD FAILED: Tue Dec 20 12:38:23 2011

It says *** Error 18 "C:\Users\reggler\Documents\REG1.5\MCU2~\MCU2.h" Line 1(9,21): File can not be opened but i can click on MCU2.h in my project browser and the file opens up just fine. What's going on here? Anyone done this before?
Thank you!
Ttelmah



Joined: 11 Mar 2010
Posts: 19496

View user's profile Send private message

PostPosted: Tue Dec 20, 2011 3:48 pm     Reply with quote

Launch a new _project_ and select the files.
Problem is that the project file contains the locations of the files it wants to find. Unless the entire directory structure on the new machine is the same as on the old one, it'll be telling the compiler to look in the wrong place for the files, and they won't be found.

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