FunctionBase has one template argument which has a default, but maybe
clang isn't able to figure that default out because it's getting
confused by the combination of the forward declarations and the real
declarations?  Try replacing "FunctionBase<>" with
"FunctionBase<Number>" in those .C files and let us know if that
works?

Thanks,
---
Roy

On Fri, 23 Mar 2012, Jungho Lee wrote:

> While trying to make libmesh, I got the following error messages - any
> idea how to fix it? It seems to be a syntax error that clang exposes
> (it compiles with gcc).
>
> Thanks,
> Jungho
>
>
> In file included from src/error_estimation/exact_error_estimator.C:34:
> /Users/jungholee/projects/herd/libmesh/include/mesh/mesh_function.h:72:9:
> error: too few template arguments for class
>     template 'FunctionBase'
>               const FunctionBase<>* master=NULL);
>                     ^
> /Users/jungholee/projects/herd/libmesh/include/systems/system.h:51:34:
> note: template is declared here
> template <typename Output> class FunctionBase;
> ~~~~~~~~~~~~~~~~~~~~~~~~~~       ^
> In file included from src/error_estimation/exact_error_estimator.C:34:
> /Users/jungholee/projects/herd/libmesh/include/mesh/mesh_function.h:86:9:
> error: too few template arguments for class
>     template 'FunctionBase'
>               const FunctionBase<>* master=NULL);
>                     ^
> /Users/jungholee/projects/herd/libmesh/include/systems/system.h:51:34:
> note: template is declared here
> template <typename Output> class FunctionBase;
> ~~~~~~~~~~~~~~~~~~~~~~~~~~       ^
> 2 errors generated.
> make: *** 
> [src/error_estimation/exact_error_estimator.x86_64-apple-darwin11.3.0.dbg.o]
> Error 1
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Libmesh-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libmesh-users
>
>

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to