Community
cancel
Showing results for 
Search instead for 
Did you mean: 
bigdoghunting
Beginner
64 Views

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

 

0 Kudos
1 Reply
David_A_Intel1
Employee
64 Views

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. :\

Reply