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

compiler version?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
PIC Wrangler



Joined: 27 Jan 2005
Posts: 5
Location: Daventry, UK

View user's profile Send private message

Is there a _VERSION_ pre-processor identifier ?
PostPosted: Tue Jul 05, 2005 4:29 am     Reply with quote

How do you get your program to print the version of Compiler it was compiled under ?

e.g. is there something like:

printf("Compiled with version ");
printf( _ver_); <=== print version here, e.g 3.227
printf(_date_);
printf( _time_);
ckielstra



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

View user's profile Send private message

PostPosted: Tue Jul 05, 2005 5:10 am     Reply with quote

Quote:
How do you get your program to print the version of Compiler it was compiled under ?
This is unrelated to the original question of this thread, so please in the future start a new thread.

Check the readme.txt in your PICC program directory for a description of possible parameters for the getenv() function.
Quote:
VERSION Returns the compiler version as a float
VERSION_STRING Returns the compiler version as a string
PIC Wrangler



Joined: 27 Jan 2005
Posts: 5
Location: Daventry, UK

View user's profile Send private message

PostPosted: Tue Jul 05, 2005 5:55 am     Reply with quote

ckielstra wrote:
This is unrelated to the original question of this thread, so please in the future start a new thread.


Thank you for your help using getenv().

Actually I think my post IS relevant to the original post, as it's useful to track which compiled programs fail under different compiler versions.

I'm sorry if I spoilt your thread viewing experience.
ckielstra



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

View user's profile Send private message

PostPosted: Tue Jul 05, 2005 6:10 am     Reply with quote

Reading your original question again I'm not sure you were asking for how to print the date and time as well?
For this you were close, just two more underscore '_' characters are required.
Code:
printf(__date__);  // Two underscore characters before and after the identifier.
printf(__time__);
joe



Joined: 06 Jul 2005
Posts: 2

View user's profile Send private message

PostPosted: Wed Jul 06, 2005 1:28 am     Reply with quote

Hi, thanks for the reply in the forum... i just search through my files and found that i have PCW IDE ver 3.36.0.10 installed. I tried using the Chipedit program and found that i can add in a new chip but there are many settings to configure for the new chip in the device setting.

How do i configure it?
sorry i am pretty new to these..

by the way, i am using PIC12F683

thanks
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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