On Thu, Jan 7, 2016 at 3:20 PM, Xujun Zhao <[email protected]> wrote:
> Hi all,
>
> I am reporting a compiling error with Xcode command line tools version 7.2
> Apple LLVM version 7.0.2 (clang-700.1.81)
>
> The configure log file is attached, and the error messages are as follows.
> If I go the file and comment the line (*_target) << in;
> it can pass the compilation on my Mac
>
>
> -------------------------------------------------------------------------------------------------------------------
> In file included from src/mesh/mesh_communication_global_indices.C:24:
> In file included from ./include/libmesh/libmesh_common.h:65:
> ./include/libmesh/ostream_proxy.h:116:16: error: call to function
> 'operator<<' that is neither visible in the
> template definition nor found by argument-dependent lookup
> (*_target) << in; return *this;
> ^
> src/mesh/mesh_communication_global_indices.C:617:66: note: in instantiation
> of function template
> specialization 'libMesh::BasicOStreamProxy<char,
> std::__1::char_traits<char>
> >::operator<<<std::__1::pair<Hilbert::HilbertIndices, unsigned long
> long> >' requested here
> *(Point *)(*nodej) << " has HilbertIndices " <<
> ^
> ./include/libmesh/parallel_hilbert.h:81:1: note: 'operator<<' should be
> declared prior to the call site or in
> namespace 'Hilbert'
> operator <<
> ^
>
> 1 error generated.
> make[1]: *** [src/mesh/libmesh_opt_la-mesh_communication_global_indices.lo]
> Error 1
> make[1]: *** Waiting for unfinished jobs....
> make: *** [all-recursive] Error 1
>
Hmm... the error seems to be triggered by this line of code:
libMesh::err << "node " << (*nodej)->id() << ", " <<
*(Point *)(*nodej) << " has HilbertIndices " <<
node_keys[j] << std::endl;
I don't really understand what this is doing at a glance. Roy, is that a
C-style cast to a Point *, then a dereferencing?
Xujun, if you comment out lines 615-619 in
mesh_communication_global_indices.C, does the error go away? That's a
better solution than commenting out a line in ostream_proxy.h...
--
John
------------------------------------------------------------------------------
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users