<div dir="ltr"><div>Hi,<br></div><div>I am trying to develop a static-library-based app using petsc. The structure goes as,</div><div>.<br>├── benchmarks<br>│   └── Test1<br>│       ├── main.cpp<br>│       └── Makefile<br>└── libTest<br>    ├── build<br>    ├── CMakeLists.txt<br>    ├── include<br>    │   ├── test.cpp<br>    │   └── test.h<br>    └── lib<br>        └── libTest.a</div><div><br></div><div>While this code compiles, I am unable to create a minimal working example for the same. The aim is to just print "Hello World". Why is it that nothing prints?. Is it something to do with the PETSC wrapper for cout?<br></div><div>Also, I would like to know whether it's a good idea to go ahead with this kind of code structure.</div><div><br></div><div>Thanks for the help.<br></div><div><br></div><div>Code: <a href="https://github.com/gsabhishek/PetscStaticLibraryApp.git">https://github.com/gsabhishek/PetscStaticLibraryApp.git</a> <br></div><div><br></div><div>Thanks for the help<br></div></div>