Re: [deal.II] Adding new obj target

2020-11-09 Thread Zachary Streeter
Thanks Wolfgang, I think you are correct! I just tried to use petsc_full_matrix instead and it linked no problem! On Monday, November 9, 2020 at 5:25:30 PM UTC-6 Wolfgang Bangerth wrote: > On 11/9/20 2:49 PM, Daniel Arndt wrote: > > > > Undefined symbols for architecture x86_64: > >

Re: [deal.II] Adding new obj target

2020-11-09 Thread Wolfgang Bangerth
On 11/9/20 2:49 PM, Daniel Arndt wrote: Undefined symbols for architecture x86_64:   "dealii::PETScWrappers::SparseMatrix::SparseMatrix(int const&, bool)", referenced from: There is no such function -- the linker tells you that, but it's unclear to me how it is referenced in

Re: [deal.II] Adding new obj target

2020-11-09 Thread Zachary Streeter
Ah sorry, yes I have done that already. Sorry for forgetting that detail... If it should work assuming I have added my new directory in source/CMakeLists.txt, maybe my implementation is the problem. Though, I wouldn't know why since it fails at linking. On Monday, November 9, 2020 at

Re: [deal.II] Adding new obj target

2020-11-09 Thread Daniel Arndt
Zachary, You also need to make sure that CMake actually sees that your new source directory. In particular, you should add a line saying ADD_SUBDIRECTORY(Test) to source/CMakeLists.txt. Best, Daniel Am Mo., 9. Nov. 2020 um 11:35 Uhr schrieb Zachary 42! < zacharyloui...@gmail.com>: > Hi