I have a .prj/.clw pair which builds a .lib file.
Now I need to compile it with different Clarion versions. I’d like the final file name to include the version of Clarion it was compiled with, something like fred4.lib/fred5.lib/fred6.lib etc, because I don’t want to get a C5 .lib file compiled into a C6 .exe
I know I can use %S to tell the difference between 16bit and 32bit in the project system, but I can’t find anything yet that tells me what version of the compiler I’m using?
Note also that this is only for Clarion versions < 7 
Hi Paul,
You can use CW or CWVER and #IF structure to determine the current version
Well I know I can use CWVER in a Compile or Omit statement, I can use it in a #if in a .prj as well?
Yeah, you can use something like this
#if define(_CW15)=on #then
#endif
I haven’t specifically tested with CW or CWVER but it should work
Wonderful, thanks!
#if define(_CW20)=on #then
#message "clarion 2"
#else
#message "not clarion 2"
#endif
#if define(_VER_C5)=on #then
#message "clarion 5"
#else
#message "not clarion 5"
#endif
#if define(_VER_C60)=on #then
#message "clarion 6"
#else
#message "not clarion 6"
#endif