View previous topic :: View next topic |
Author |
Message |
PIC Wrangler
Joined: 27 Jan 2005 Posts: 5 Location: Daventry, UK
|
Is there a _VERSION_ pre-processor identifier ? |
Posted: Tue Jul 05, 2005 4:29 am |
|
|
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
|
|
Posted: Tue Jul 05, 2005 5:10 am |
|
|
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
|
|
Posted: Tue Jul 05, 2005 5:55 am |
|
|
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
|
|
Posted: Tue Jul 05, 2005 6:10 am |
|
|
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
|
|
Posted: Wed Jul 06, 2005 1:28 am |
|
|
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 |
|
|
|