using the method explained in video lecture 7 did not get rid of the errors.

34 views
Skip to first unread message

Wakil Sarfaraz

unread,
Oct 22, 2015, 1:18:19 PM10/22/15
to deal.II User Group
Hello all,
I followed exactly what Prof Bengerth did in video lecture 7 using eclipse to get rid of the errors (step-1.cc/properties/c++ general/path and symbols  and then adding the path from the File System /usr/local/dealii/include/deal.II) it did not help to reduce the number of errors.
However, I must note that the only errors it shows are about the headerfiles of dealii such as

#include <deal.II/grid/tria.h>
#include <deal.II/grid/tria_accessor.h>
#include <deal.II/grid/tria_iterator.h>
#include <deal.II/grid/grid_generator.h>
#include <deal.II/grid/manifold_lib.h>
#include <deal.II/grid/grid_out.h>

the remaining code appears fine (with no error signs).

On emacs however things seems to be fine.


Wolfgang Bangerth

unread,
Oct 22, 2015, 1:30:07 PM10/22/15
to dea...@googlegroups.com

Wakil,

> I followed exactly what Prof Bengerth did in video lecture 7 using
> eclipse to get rid of the errors (step-1.cc/properties/c++ general/path
> and symbols and then adding the path from the File System
> /usr/local/dealii/include/deal.II)

I think the correct path should probably be /usr/local/dealii/include.
Are the deal.II files in this directory? Is this where you installed
deal.II on your system?


> it did not help to reduce the number
> of errors.
> However, I must note that the only errors it shows are about the
> headerfiles of dealii such as
>
> #include <deal.II/grid/tria.h>
> #include <deal.II/grid/tria_accessor.h>
> #include <deal.II/grid/tria_iterator.h>
> #include <deal.II/grid/grid_generator.h>
> #include <deal.II/grid/manifold_lib.h>
> #include <deal.II/grid/grid_out.h>
>
> the remaining code appears fine (with no error signs).

This is an issue that is in reality something that we can't fix with
deal.II. It's something that one needs to tell eclipse, and we have
never really found a useful way to tell eclipse the correct combination
of information.

That said, did you watch lecture 8.01?


> On emacs however things seems to be fine.

Sure, but emacs understands nothing of your code to begin with. It
doesn't complain because it doesn't even *try* to understand anything.

Best
W.

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

Wakil Sarfaraz

unread,
Oct 22, 2015, 2:15:11 PM10/22/15
to dea...@googlegroups.com

Yes I watched both.
So conclusively, do you think I should just stick to using emacs or gedit if I cant get eclipse to work.
Or do you think I lose too much not using eclipse. Apologies if my question is not a standard one.

> --
> 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 a topic in the Google Groups "deal.II User Group" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/WetM2VJH3SU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Wolfgang Bangerth

unread,
Oct 22, 2015, 3:29:00 PM10/22/15
to dea...@googlegroups.com
On 10/22/2015 01:15 PM, 'Wakil Sarfaraz' via deal.II User Group wrote:
>
> So conclusively, do you think I should just stick to using emacs or
> gedit if I cant get eclipse to work.
> Or do you think I lose too much not using eclipse. Apologies if my
> question is not a standard one.

The thing is that the errors Eclipse shows don't mean that it's not
working at all. It's simply not working as well as it could if it knew
the correct paths. But it still works a heck of a lot better than emacs
or vim. So my recommendation is to investigate again where exactly all
of the deal.II header files went, see if you can fix it, but in any case
continue to work with a reasonable editor such as eclipse.

Wakil Sarfaraz

unread,
Oct 22, 2015, 3:34:00 PM10/22/15
to deal.II User Group
Yes, deal.II directory is in the include.
I think that is what went wrong.
I will try this tomorrow when I am in the office.
Thanks for the prompt reply.

Timo Heister

unread,
Oct 22, 2015, 6:14:23 PM10/22/15
to dea...@googlegroups.com
>> I followed exactly what Prof Bengerth did in video lecture 7 using
>> eclipse to get rid of the errors (step-1.cc/properties/c++ general/path
>> and symbols and then adding the path from the File System
>> /usr/local/dealii/include/deal.II)
>
> I think the correct path should probably be /usr/local/dealii/include. Are
> the deal.II files in this directory? Is this where you installed deal.II on
> your system?

Is there reason you are not using the cmake generator (-G) to create
the eclipse project? I think it should add all paths correctly. At
least it worked for me in the past and also works in my current setup
(using qtcreator).


--
Timo Heister
http://www.math.clemson.edu/~heister/

Wakil Sarfaraz

unread,
Oct 23, 2015, 5:00:39 AM10/23/15
to deal.II User Group

That was exactly the problem. I added the directory /usr/local/dealii/include without /deal.II and it worked.
Thanks again.
Reply all
Reply to author
Forward
0 new messages