Symbol dealii not resolved

29 views
Skip to first unread message

Gerald Marewo

unread,
Dec 19, 2019, 11:13:33 AM12/19/19
to deal.II User Group
Dear all.

I'm new to dealii. I have libdealii and eclipse 2019-03 installed on both Debian stretch and ubuntu bionic.

I'm working on tutorial step 1. The problem is that eclipse keeps saying symbol dealii not resolved. This results from "using namespace dealii;". Consequently, eclipse doesn't know about for example Triangulation::hyper_cube".

By the way I went to project properties - > c/c++ - > symbols and paths - > added include /usr/include where deal.II is contained but in vain.

Could you please assist me to resolve this problem.

Regards.

Gerald.

David Wells

unread,
Dec 19, 2019, 12:49:08 PM12/19/19
to deal.II User Group
Hi Gerald,

The best way to do this is to let CMake generate an eclipse project
for you by executing the command

cmake -G"Eclipse CDT4 - Unix Makefiles" -DDEAL_II_DIR=/path/to/deal.II .

in your project's base directory. See

https://github.com/dealii/dealii/wiki/Eclipse

for more information.

Thanks,
David
> --
> 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/39cd9fb6-01b4-442b-a680-0c293ce71ac1%40googlegroups.com.

Gerald Marewo

unread,
Dec 19, 2019, 4:13:56 PM12/19/19
to deal.II User Group
Dear David,

Thank you for the reply. I followed your advice and it seems the trick is in rebuilding the index.

All is well now.

Cheers.

Gerald.

Gerald Marewo

unread,
Dec 20, 2019, 11:50:34 AM12/20/19
to deal.II User Group
Dear David and everyone,

Here is an update and my way of saying that my problem has been completely solved.

Upon watching Wolfgang's Lecturer video 8.01 now I understand that:

  1. I created a new c++ project from scratch inside Eclipse and I told Eclipse where to find the include files. Rebuilding index helped after a bit of tinkering.
  2. The easier route was to ask CMake to not only create Makefiles for my project but to also create a project for Eclipse.
  3. Once inside Eclipse I importe project from the workspace then it tried to understand the project by building an index. Worked like a charm.
All is good now.

I rest my case.

Thanks to David and Wolfgang.

Regards.

Gerald.

David Wells

unread,
Dec 20, 2019, 12:25:33 PM12/20/19
to deal.II User Group
Dear Gerald,

This is great to hear! You are most welcome.

Thanks,
David
> --
> 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/31a36647-e720-4aaf-a71d-09f8d10bcf53%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages