Compile error for __itt_ in C program

Compile error for __itt_ in C program

I get an error when attempting to compile the Intel VTune Amplifier XE API code:

error: expression must have a constant value

__itt_domain* pFrame = __itt_domain_create("FRAME");

                                              ^

This is in a .c file (not .cpp) using a C compiler

How do I fix this?

Thanks

 

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi Big Dog!  (I really wanted to say that! :p )

Windows or Linux?  Have you tried adding it to one of the sample apps included in the product?  I believe the matrix sample is C, even though it is in the C++ subdirectory. :\

Regards,
MrAnderson

Leave a Comment

Please sign in to add a comment. Not a member? Join today