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

compatibility problem?

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







compatibility problem?
PostPosted: Fri Nov 24, 2006 6:42 am     Reply with quote

i have two ccs compillers, v3.124 and v3.249. the problem is: my code compils fine with old version, but not with the new one. the same code, with no changes! target device is 16f877a. can somebody help me?
Ttelmah
Guest







PostPosted: Fri Nov 24, 2006 6:55 am     Reply with quote

Realistically, archive the old compiler with the source, and use this....
The 'answer' gets complex, and will depend on how your code is written. There are some 'little' changes, which have caused this type of behaviour. The way that bit fields are handled can affect some complex logic tests. The improved optimisation, can cause problems, in particular if you are mixing assembler with your C. Try running with the optimisation turned down. There have been some slight 'tweaks' to some of the library routines (make sure that your code is pulling the libraries that correspond to the latter compiler, when trying to compile with this).

Best Wishes
koko
Guest







PostPosted: Fri Nov 24, 2006 8:15 am     Reply with quote

thanks, Ttelmah.
i made some changes in my code, but there is new problem, even more strange. the code now compils with both compilers, but work only if it was compiled with old version! Shocked Shocked
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Nov 24, 2006 10:58 am     Reply with quote

Read my post near the end of this thread. You may have the same
problem. It's caused by changing the compiler version, but keeping
a local copy of the .H file from the older compiler in your project directory:
http://www.ccsinfo.com/forum/viewtopic.php?t=18783&highlight=constants
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