If I try to compile the example by directly make it in the folder of the
examples, it works. But if I copy the example, say, step-1, to somewhere
else, and type in the terminal "make", it does not work.

Then you need to adjust the path to the deal.II library at the top of the Makefile.


Moreover, if I try to compile it in the folder of examples itself, say,
in the step-2 directory, by typing in the terminal, for example, " */g++
step-2.cc -o step2/*", it says:

*/fatal error: deal.II/grid/trial.h: No such file or directory
         compilation terminated./*/
/
Let alone compile it in in somewhere else outside deal.II directory in
the terminal.

This is why there is a makefile: because compiling projects with complicated dependencies can not be done using a simple command on the command line.

Best
 W.
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to