On 6/7/23 14:29, Kyle Schwiebert wrote:

This seems to match the CMake documentation example. However, upon running 'make les' I immediately get the following error while it's compiling BlockHelpers.cpp:

error: expected class-name before ‘{’ token

regarding this class definition in the associated header, BlockHelpers.hpp:
template< typename MatrixType, typename VectorType>
class SystemMatrixWrapper : public Subscriptor
{
//class def
...
}

As far as I can tell, this issue is being caused by an issue linking to the deal.II files and thus the compiler does not recognize Subscriptor as a class. When I comment out ': public Subscriptor' this error disappears.

The file does include the subscriptor class with the line:
#include <deal.II/base/subscriptor.h>

about which the compiler/preprocessor does not complain.

How can I resolve this issue? Any advice would be most appreciated. I suspect there is an issue with my CMakeLists.txt file.

Kyle:
the class name is dealii::Subscriptor, not Subscriptor. Are you saying
  using namespace dealii;
somewhere higher up in the file?

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 bange...@colostate.edu
                           www: http://www.math.colostate.edu/~bangerth/


--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/ed8d6c4e-1d5f-520f-ff0c-f6fb5c1818a9%40colostate.edu.

Reply via email to