# TaoInitializePackage
This function sets up PETSc to use the Tao package.  When using static or shared libraries, this function is called from the first entry to `TaoCreate()`; when using shared or static libraries, it is called from PetscDLLibraryRegister_tao() 
## Synopsis
```
PetscErrorCode TaoInitializePackage(void)
```



## See Also
 `TaoCreate()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/interface/dlregistao.c.html#TaoInitializePackage">src/tao/interface/dlregistao.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/interface/dlregistao.c)


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