User Guide


Error Message: Undefined Linker References to dlopen or dlsym


When linking your application program on Linux* OS, you see linker (
) messages such as:
  • undefined reference to `dlopen'
  • undefined reference to `dlsym'


Intel® Advisor
uses dynamic loading. After you add the
(C/C++) line to include the
Intel® Advisor
annotation definition file, you must specify the linker option
to enable dynamic loading.
In most cases, you do not need source annotations when using
Intel® Advisor
, except for the Suitability analysis of the
perspective. When analyzing your application with other perspectives, such as
Vectorization and Code Insights
Offload Modeling
, you can analyze all parts of your code automatically or use
Intel Advisor
mark-up capabilities, which do not require you to recompile your application.

Possible Solution

  • Do the following:
    1. Add the linker option
      to your command line, script, or make file.
    2. Review the options listed in the Build Your Target Application to ensure that you specified all required compiler and linker options (use the link below under See Also). If omitted, add missing options to your command line, script, or make file.
    3. Rebuild your program.

Product and Performance Information


Performance varies by use, configuration and other factors. Learn more at