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 support@ccsinfo.com

Trouble moving project to different directory

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







Trouble moving project to different directory
PostPosted: Thu Apr 03, 2003 4:03 pm     Reply with quote

When I moved a whole working project from one directory to another, I have trouble compiling it in the new directory.

I get:

Deleting intermediary files... done.
Executing: "C:\Program files\Picc\CCSC.exe" "mmc_test.c" 様様様様様様様様様様様様様様様理毫毫毫
Error[24] C:\PROGRAM FILES\PICC\devices\18F8620.h 2 : Unknown device type
Halting build on first failure as requested.
BUILD FAILED

What do I need to watch when I move the project files from one directory to another?

Thanks!
___________________________
This message was ported from CCS's old forum
Original Post ID: 13381
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: Trouble moving project to different directory
PostPosted: Thu Apr 03, 2003 4:07 pm     Reply with quote

:=When I moved a whole working project from one directory to another, I have trouble compiling it in the new directory.
:=
--------------------------------------------------------

I don't know what you're using, whether it's MPLAB or PCW.
But the simple way to move a project is to copy all the .c
and .h files to the new directory, and then create a new
project in that directory. Don't copy the .pjt file, etc.
Only copy the source files.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13382
Chen
Guest







Re: Trouble moving project to different directory
PostPosted: Thu Apr 03, 2003 4:43 pm     Reply with quote

I am using it under MPLAB/CCS.

I tried your suggestion, copy only .c and .h files, and create the project in the new directory (select CCS as the tool and add the .c file to it), but the result is the same (sometime even crashes MPLAB), and I verify the old directory still works fine.


:=:=When I moved a whole working project from one directory to another, I have trouble compiling it in the new directory.
:=:=
:=--------------------------------------------------------
:=
:=I don't know what you're using, whether it's MPLAB or PCW.
:=But the simple way to move a project is to copy all the .c
:=and .h files to the new directory, and then create a new
:=project in that directory. Don't copy the .pjt file, etc.
:=Only copy the source files.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13384
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: Trouble moving project to different directory
PostPosted: Thu Apr 03, 2003 5:02 pm     Reply with quote

:=I am using it under MPLAB/CCS.
:=
:=I tried your suggestion, copy only .c and .h files, and create the project in the new directory (select CCS as the tool and add the .c file to it), but the result is the same (sometime even crashes MPLAB), and I verify the old directory still works fine.
:=
-------------------------------------------------------------

What version of MPLAB and what version of CCS are you using ?
Tell me, and I'll try moving the directory of a test project.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13385
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: Trouble moving project to different directory
PostPosted: Thu Apr 03, 2003 6:05 pm     Reply with quote

:=When I moved a whole working project from one directory to another, I have trouble compiling it in the new directory.
:=
:=I get:
:=
:=Deleting intermediary files... done.
:=Executing: "C:\Program files\Picc\CCSC.exe" "mmc_test.c" 様様様様様様様様様様様様様様様理毫毫毫
:=Error[24] C:\PROGRAM FILES\PICC\devices\18F8620.h 2 : Unknown device type
:=Halting build on first failure as requested.
:=BUILD FAILED
:=
:=What do I need to watch when I move the project files from one directory to another?
:=
-----------------------------------------------------

I have one more thought, while looking at the error messages
above. It says "Unknown device type", even though it finds
the .h file.

When you setup the project in MPLAB, did you go to the window
that lets you select the proper CCS compiler ? Did you pick
the PCH compiler ? If you picked PCM, it won't work. You
are using a 18F chip, and you need to setup MPLAB to use the
PCH compiler.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13386
Woody
Guest







Re: Trouble moving project to different directory
PostPosted: Fri Apr 04, 2003 1:24 am     Reply with quote

I'm using MPLAB 6.10 / PCWH 3.148

I've encountered the problem outlined after printing the contents of various windows from MPLAB. The problem appears to be that the MPLAB project file (*.mcp) gets corrupted; in my case I found that line of funny characters you saw in this file - restoring the project file from a backup solved the problem.

When moving directories the problem appears to be that the workspace file that MPLAB uses (*.mcw) holds a reference to the full path of where the original include files were; so even when you move directory, apart from the main *.c source file all other files *.h and *.c files from the original directory are included, not the ones in your current working directory.

It seems the best way is to copy only the *.c and *.h files and biuld the project from scratch each time.

Has anybody found a way round this?


___________________________
This message was ported from CCS's old forum
Original Post ID: 13392
Chen
Guest







Re: Trouble moving project to different directory
PostPosted: Fri Apr 04, 2003 8:04 am     Reply with quote

Yes, I did select the correct device from MPLAB

My CCS version:
IDE 3.24
PCB/M/H: 3.137

MPLAB: 6.12



:=-----------------------------------------------------
:=
:=I have one more thought, while looking at the error messages
:=above. It says "Unknown device type", even though it finds
:=the .h file.
:=
:=When you setup the project in MPLAB, did you go to the window
:=that lets you select the proper CCS compiler ? Did you pick
:=the PCH compiler ? If you picked PCM, it won't work. You
:=are using a 18F chip, and you need to setup MPLAB to use the
:=PCH compiler.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13399
Chen
Guest







Re: Trouble moving project to different directory
PostPosted: Fri Apr 04, 2003 8:17 am     Reply with quote

In the language selection windows, I don't see PCH nor PCM option, only CCS C Compiler (ccsc.exe), and that is what i picked

:=When you setup the project in MPLAB, did you go to the window
:=that lets you select the proper CCS compiler ? Did you pick
:=the PCH compiler ? If you picked PCM, it won't work. You
:=are using a 18F chip, and you need to setup MPLAB to use the
:=PCH compiler.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13400
Chen
Guest







I just downloaded and installed MPLAB 6.13. It seems to fix
PostPosted: Fri Apr 04, 2003 9:08 am     Reply with quote


___________________________
This message was ported from CCS's old forum
Original Post ID: 13402
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