On Fri, Feb 25, 2011 at 12:44 AM, Praveen C <[email protected]> wrote:
> I want to separate my code into different *.h and *.cc files. Are there any
> issues in doing this, due to use of templates ? Since all the tutorial
> examples are in a single *.cc file, its not clear to me how to do this.

Of course you can use multiple header and source files. For bigger
projects with more than one cc file you can make use of the makefile
for "large projects", see:
http://dealii.org/developer/development/makefiles.html#generic

When putting implementations of template functions/classes in cc files
you have to make use of explicit template instantiation (see your
favorite c++ book).

-- 
Timo Heister
http://num.math.uni-goettingen.de/~heister
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to