Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
4676 Discussions

fatal error: advisor-annotate.h

liu_wei67
Beginner
327 Views

HI:

I encountered the problem of the advisor-annotate.h header file when using the advisor example on the official website.

1.Return to the Survey Report, right-click any data row in the top pane, and choose Edit Source

 to open the nqueens_serial.cppsource file in an editor.
2.Search for ADVISOR SUITABILITY EDIT and follow the directions in the sample code. Make four total edits:
- Uncomment //#include <advisor-annotate.h>
...
When I uncommented, the following error was reported when executing the command
>>> make 1_nqueens_serial

g++ -m64 nqueens_serial.cpp -o 1_nqueens_serial -O2 -g -I /include/ -ldl
nqueens_serial.cpp:74:10: fatal error: advisor-annotate.h: No such file or directory
74 | #include <advisor-annotate.h>
      |                  ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:51: 1_nqueens_serial] Error 1

    0 Kudos
    3 Replies
    Ruslan_M_Intel
    Employee
    311 Views

    Try to edit the Makefile by changing 'ADVISOR_2018_DIR' to 'ADVISOR_2021_DIR'

    liu_wei67
    Beginner
    296 Views

    thanks, I have solved this problem.

    RahulU_Intel
    Moderator
    292 Views

    Hi,

     

    Thanks for posting in Intel communities. Glad to know that your issue is resolved. If you need any additional information, please submit a new question as this thread will no longer be monitored.

     

    Thanks and Regards

    Rahul

     

    Reply