Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

C/C++ API Documentation | 2026.1

# P4Libraries.Initialize()

Performs static initialization of libraries required to use P4API. If the host application handles some of them itself (such as if it has its own copy of one of the libraries), the initialization can be skipped by passing a combination of `P4LibrariesInits` values that are OR'd together. See `P4LibrariesInits` enum in P4Libraries - static initialization of required libraries.

An example of initialization is in `sample/p4api.cc` file:

`P4Libraries::Initialize( P4LIBRARIES_INIT_ALL, &e );`

which is also at Sample application.

See also P4Libraries::Shutdown()

Your search for returned results