09-16-2012 02:47 PM
Hello,
I want to display the current version of my software on a string control, using _TARGET_PRODUCT_VERSION_.
This works fine with the internal compiler, but when switching to clang 2.9 I receive an error:
error: invalid suffix '.0.114' on floating constant
(the _TARGET_PRODUCT_VERSION_ translates to 3.0.0.114)
Ideas? Thanks!
Solved! Go to Solution.
09-20-2012 02:40 PM
Yes, this is a known-issue (371655), as of 3 weeks ago. You're not able to use a pre-defined string macro in your code when using any third-party compiler. It's already been fixed internally, but unfortunately I don't think there's any workaround other than waiting for the fix to be available.
Luis
09-20-2012 02:54 PM - edited 09-20-2012 02:59 PM
Thanks for the confirmation...
By the way, could this be an option for the NI update service?
09-20-2012 03:10 PM
NI Update Service only plays a role when a new version (service pack, etc...) of the software is available. So, when a version that includes this fix is released then, yes, you should receive an update service notification.
09-20-2012 11:20 PM
@LuisG wrote:
So, when a version that includes this fix is released then....
I vote for this year
09-21-2012 11:23 AM
Point taken
By the way, looks like I gave you the wrong bug #. It's actually 368271.
Luis
03-05-2013 05:44 AM
I am happy to see that this has been fixed in CVI 2012 SP1