# PetscDLLibraryPrepend
Add another dynamic library to search for symbols to the beginning of the search path. 
## Synopsis
```
PetscErrorCode PetscDLLibraryPrepend(MPI_Comm comm, PetscDLLibrary *outlist, const char path[])
```
Collective


## Input Parameters

- ***comm -*** MPI communicator
- ***path -*** name of the library



## Output Parameter

- ***outlist -*** list of libraries





## Note
If library is already in path will remove old reference.


## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/dll/dl.c.html#PetscDLLibraryPrepend">src/sys/dll/dl.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/dll/dl.c)


[Index of all Sys routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
