Thank you Wolfgang!

I added #include <stdio.h> to the sc_io.c file and that fixed the error I 
was getting for that one.

The #include <math.h> declaration did not seem to work; however, as I still 
get the same error.

Should I note this on the github issue?

Thanks,
Stephanie

On Monday, March 7, 2022 at 7:54:42 AM UTC-7 Wolfgang Bangerth wrote:

> On 3/4/22 16:51, Stephanie Sparks wrote:
> > 
> > I did try to specify C99 as you suggested 
>
> OK, good news that that worked at least.
>
>
> >but I get a new error now:
> > 
> > /home/saspark2/build2//tmp/unpack/p4est-2.3.2/sc/src/sc_io.c(581): 
> warning 
> > #266: function "fileno" declared implicitly
> >     retval = fsync (fileno (file));
> >                     ^
> > 
> > /home/saspark2/build2//tmp/unpack/p4est-2.3.2/sc/src/sc_random.c(153): 
> error: 
> > identifier "M_PI" is undefined
> >         t = tan (M_PI * sc_rand (state));
> >                  ^
>
> I'm afraid that you might have to edit these source files yourself. We're 
> not 
> the authors of p4est, so there is nothing I can fix myself, but I did open 
> github issues for everything:
> https://github.com/cburstedde/libsc/issues/66
> https://github.com/cburstedde/libsc/issues/65
> https://github.com/cburstedde/p4est/issues/133
> I *think* that it should work if you added the #include directives 
> mentioned 
> in these issues to the two libsc files. This may or may not be enough to 
> get 
> things compiled...
>
> Best
> W.
>
> -- 
> ------------------------------------------------------------------------
> Wolfgang Bangerth email: [email protected]
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/5681406e-f0fa-45e7-93f2-4295c3f24531n%40googlegroups.com.

Reply via email to