Skip to content

Commit

Permalink
Added pkg-config support info to GSG (#543) (#582)
Browse files Browse the repository at this point in the history
Signed-off-by: Dylan Benito <[email protected]>
(cherry picked from commit 527fbca)

Co-authored-by: Dylan <[email protected]>
  • Loading branch information
ValentinaKats and dcbenito committed May 23, 2022
1 parent eba3695 commit df96969
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions documentation/library_guide/onedpl_gsg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,32 @@ To use tested C++ standard APIs, you need to include the corresponding C++ stand
and use the ``std`` namespace.


pkg-config Support
==================

The pkg-config program is used to retrieve information about your installed libraries, and
to compile and link against one or more libraries.

Use pkg-config with |onedpl_short|
----------------------------------

Use pkg-config with the ``--cflags`` flag to get the include path to the oneDPL directory:

.. code:: cpp
dpcpp test.cpp $(pkg-config --cflags dpl)
The ``--msvc-syntax`` flag is required when you use a Microsoft Visual C++* compiler.
This flag converts your compiling and linking flags to the appropriate form:

.. code:: cpp
dpcpp test.cpp $(pkg-config --msvc-syntax --cflags dpl)
.. note::
Use the pkg-config tool to get rid of large hard-coded paths and make compilation more portable.


Usage Examples
==============

Expand Down

0 comments on commit df96969

Please sign in to comment.