Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
4998 Discussions

Compile error for __itt_ in C program

bigdoghunting
Beginner
389 Views

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

0 Kudos
Reply