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

Issue switching between version 3.* and 4.*

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



Joined: 08 Sep 2003
Posts: 49
Location: Concord NH

View user's profile Send private message Send e-mail Visit poster's website

Issue switching between version 3.* and 4.*
PostPosted: Fri Oct 23, 2009 7:55 am     Reply with quote

I have been using 4.093 "PCH" for a while with no problems. I have some older code that I would like to make some changes to and compile with 3.249. I reload the old compiler, try to compile and I get this error
Error: The selected compiler: "PCM" is not installed on this PC. First off I am not using the PCM compiler (I am using the PCH). Second I have done this before and had no issue. I tried placing the 3.249 in another folder and get the same error. Anyone have a clue as to what is happening? I would really like to compile this in 3.249.

Thanks,

Doug
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Fri Oct 23, 2009 9:49 am     Reply with quote

I would try a re-install of the 3.249

First rename folder that holds 4.xx to PICC_new

Then reinstall 3.249 I think it will put it in c:\program files\PICC

Then try to re-compile. You didn't say if your using the IDE.
I just use the command line compile.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Fri Oct 23, 2009 9:53 am     Reply with quote

I switch compiler versions all the time and have no problems.
But, I had some problems when the path to the compiler was different from the default installation path. So what I did from then on was to always have the active compiler in a directory named "Drive letter:\Program Files\PICC"
The actual drive letter can be anything.

On switching versions I rename the current compiler directory name to something like "PICC 3.249" and rename the version directory I want to use from "PICC 4.077" --> "PICC"

Crude, but works for me and I'm too lazy to look further into it.
Douglas Richard



Joined: 08 Sep 2003
Posts: 49
Location: Concord NH

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Fri Oct 23, 2009 10:02 am     Reply with quote

I am using the command line compiler. Tried dumping the compiler in the default folder and still have the same issue.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Fri Oct 23, 2009 10:11 am     Reply with quote

And you have copied the valid registration files to this directory? (pcb.crg, pcm.crg and/or pch.crg)

I just tried: the registration files you use for v4.xxx are also valid for v3.249 when you copy them to this directory.
Douglas Richard



Joined: 08 Sep 2003
Posts: 49
Location: Concord NH

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Fri Oct 23, 2009 10:18 am     Reply with quote

No I am not sure if I am using the proper pch.crg file. I have used several versions of the .crg file that I have and all have the same results.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Oct 23, 2009 10:53 am     Reply with quote

1. Post your version of Windows.

2. What is your version of MPLAB ? (I assume you're using MPLAB).

3. Go to the Configure menu in MPLAB and look at the setting
for the PIC. What PIC is selected ?

4. Go to the Project menu in MPLAB, and then to the Select Language
Toolsuite menu. What is the setting ? Is there more than one
setting available for CCS ? What are they ?
Douglas Richard



Joined: 08 Sep 2003
Posts: 49
Location: Concord NH

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Fri Oct 23, 2009 12:25 pm     Reply with quote

running windows xp. not using MPlab to compile (just dragging and dropping the file onto the ccsc.exe.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Oct 23, 2009 2:18 pm     Reply with quote

I installed PCH vs. 3.249 and dragged a .c source file onto it.
It works OK for me.
Douglas Richard



Joined: 08 Sep 2003
Posts: 49
Location: Concord NH

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Mon Oct 26, 2009 1:54 pm     Reply with quote

OK here was the issue. In the command line I added +FH. My c files now compile with PCH 3.249.

Kind of funny though. I have never used +FH before this week (I have always left it out and was able to compile with 3.249 or 4.093 with no problems).
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