table.h errors

37 views
Skip to first unread message

Jammi Ashok

unread,
May 26, 2020, 2:52:01 AM5/26/20
to deal.II User Group
Dear sir,
I am getting error in the following lines in "table.h".

// Make the underlying iterator class a friend.
958  friend class LinearIndexIterator<
959  Iterator<TableType, Constness, storage_order>,
960  Accessor<TableType, Constness, storage_order>>;
961  };


I am using windows x64 machine.
THe error says "C2990 'dealii::LinearIndexIterator': non-class template has already been declared as a class template"
Also,
"syntax error '<'.
"unexpected tokens preceding ';'


Kindly help me out!!!

Ashok

Wolfgang Bangerth

unread,
May 26, 2020, 4:43:35 PM5/26/20
to dea...@googlegroups.com
On 5/26/20 12:52 AM, Jammi Ashok wrote:
> I am getting error in the following lines in "table.h".
>
> // Make the underlying iterator class a friend.
> 958 friend class LinearIndexIterator
> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dealii.org%2Fdeveloper%2Fdoxygen%2Fdeal.II%2FclassLinearIndexIterator.html&data=02%7C01%7CWolfgang.Bangerth%40colostate.edu%7C07d8ed42c7934fc9907508d801414cd0%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637260727265355249&sdata=gOS6uSo%2BhH9AoOdYF5sMvholtVS7I%2FDlH6%2BoKnznpQY%3D&reserved=0><
> 959 Iterator
> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dealii.org%2Fdeveloper%2Fdoxygen%2Fdeal.II%2FclassMatrixTableIterators_1_1Iterator.html&data=02%7C01%7CWolfgang.Bangerth%40colostate.edu%7C07d8ed42c7934fc9907508d801414cd0%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637260727265365241&sdata=GpBlt90%2FL2VnfXI8UEtlnfnmrTrr7aP%2FZU6CCYZw4go%3D&reserved=0><TableType,
> Constness, storage_order>,
> 960
> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dealii.org%2Fdeveloper%2Fdoxygen%2Fdeal.II%2FclassMatrixTableIterators_1_1AccessorBase.html%23aea52115385a3e007cab612d2977f2eb9&data=02%7C01%7CWolfgang.Bangerth%40colostate.edu%7C07d8ed42c7934fc9907508d801414cd0%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637260727265365241&sdata=hZh%2BJuMaUdhDAkxEw3WzslQIvrH91FZL7nCxtY%2FDPZk%3D&reserved=0>
> Accessor
> <https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dealii.org%2Fdeveloper%2Fdoxygen%2Fdeal.II%2FclassMatrixTableIterators_1_1Accessor.html&data=02%7C01%7CWolfgang.Bangerth%40colostate.edu%7C07d8ed42c7934fc9907508d801414cd0%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637260727265375236&sdata=QxqvRa6XbHCI9wrGydH7mN4KmPgESE6ZYjIYJyJT5A4%3D&reserved=0><TableType,
> Constness, storage_order>>;
> 961  };
>
>
> I am using windows x64 machine.
> THe error says "C2990 'dealii::LinearIndexIterator': non-class template has
> already been declared as a class template"
> Also,
> "syntax error '<'.
> "unexpected tokens preceding ';'

Jammi,
what version of the Microsoft compiler are you using? And what version of deal.II?

The most recent deal.II versions all work just fine with the more recent
Visual Studio compilers, so I am surprised that you are getting this error.

Best
W.


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

Jammi Ashok

unread,
May 26, 2020, 10:34:30 PM5/26/20
to dea...@googlegroups.com
Visual studio - 2017 and deal-ii-9.1.1.

--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/51d86946-09f8-b778-22ea-d93f204542d1%40colostate.edu.

Jammi Ashok

unread,
May 26, 2020, 10:36:15 PM5/26/20
to dea...@googlegroups.com
Actually I cloned deal-ii from github. Day before yesterday.

Wolfgang Bangerth

unread,
May 28, 2020, 4:52:16 PM5/28/20
to dea...@googlegroups.com
On 5/26/20 8:36 PM, Jammi Ashok wrote:
> Actually I cloned deal-ii from github. Day before yesterday.

Jammi -- so does it work in the cloned repository? As I mentioned, we
regularly compile with MS Visual Studio...

Best
WB
Reply all
Reply to author
Forward
0 new messages