Hey W,

Thank you for your reply. I changed the path to the library, but it still
could not work.

Actually, it worked a few days earlier  by simply typing in the terminal
"g++ step-2.cc", but later I want to set the path by using emacs, say,
f"emacs .bash_profile", which failed, and some other actions which I could
not remember. Now if I type  $PATH, it turns out to be:

bash:
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/zhengrongcheng/deal.II/lib:
*No such file or directory*

See the highlighted one? I don't know how to fix it. Maybe this is the
problem.

Please let me know if you can help with it. Thanks.

All the best

Z.Cheng

On Tue, Feb 14, 2012 at 8:58 AM, Wolfgang Bangerth
<[email protected]>wrote:

>
>  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<http://poisson.dealii.org/mailman/listinfo/dealii>
>
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to