<div dir="ltr">Including <moab/MOABConfig.h> doesn't help. I'll see about creating a minimal example...<div><br></div><div>--Nico</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Nov 2, 2015 at 10:05 PM Vijay S. Mahadevan <<a href="mailto:vijay.m@gmail.com">vijay.m@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can you try including moab/MOABConfig.h directly in your test before<br>
ParallelComm and see if that resolves issues ?<br>
<br>
ParallelComm includes Interface.hpp which in turn includes<br>
MOABConfig.h. If you are including some other MOAB header before<br>
these, MOAB_HAVE_MPI might not be defined.<br>
<br>
Vijay<br>
<br>
On Mon, Nov 2, 2015 at 3:00 PM, Nico Schlömer <<a href="mailto:nico.schloemer@gmail.com" target="_blank">nico.schloemer@gmail.com</a>> wrote:<br>
> It's a little convoluted with Trilinos includes right now, I'm trying to<br>
> generate a minimal example.<br>
><br>
> --Nico<br>
><br>
> On Mon, Nov 2, 2015 at 10:00 PM Vijay S. Mahadevan <<a href="mailto:vijay.m@gmail.com" target="_blank">vijay.m@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Nico, can you give an example ? What else did you include before<br>
>> ParallelComm to get such an error ? I am guessing this has to do with<br>
>> how moab/MOABConfig.h gets included since that's where MOAB_HAVE_MPI<br>
>> is defined.<br>
>><br>
>> Vijay<br>
>><br>
>> On Mon, Nov 2, 2015 at 2:47 PM, Nico Schlömer <<a href="mailto:nico.schloemer@gmail.com" target="_blank">nico.schloemer@gmail.com</a>><br>
>> wrote:<br>
>> > When playing with MOAB, I found that if I include the header<br>
>> > ```<br>
>> > #include <moab/ParallelComm.hpp><br>
>> > ```<br>
>> > after something that's also using MPI, I'm getting strange compilation<br>
>> > errors of the kind<br>
>> > ```<br>
>> > error: ‘MPI_COMM_WORLD’ was not declared in this scope<br>
>> > ```<br>
>> > Has anyone else experienced this?<br>
>> ><br>
>> > Cheers,<br>
>> > Nico<br>
</blockquote></div>