LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

clang error using using _TARGET_PRODUCT_VERSION_: invalid suffix

Solved!
Go to solution

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!

0 Kudos
Message 1 of 7
(4,301 Views)
Solution
Accepted by topic author Wolfgang

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

0 Kudos
Message 2 of 7
(4,261 Views)

Thanks for the confirmation...

 

By the way, could this be an option for the NI update service?

0 Kudos
Message 3 of 7
(4,258 Views)

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.

 

0 Kudos
Message 4 of 7
(4,251 Views)

@LuisG wrote:

So, when a version that includes this fix is released then.... 


I vote for this year Smiley Happy

0 Kudos
Message 5 of 7
(4,245 Views)

Point taken Smiley Wink

 

By the way, looks like I gave you the wrong bug #. It's actually 368271.

 

Luis

0 Kudos
Message 6 of 7
(4,231 Views)

I am happy to see that this has been fixed in CVI 2012 SP1

0 Kudos
Message 7 of 7
(4,018 Views)