[aspect-devel] Errors when compiling a plugin into a shared library

Lev Karatun lev.karatun at gmail.com
Tue Mar 24 14:58:03 PDT 2015


Thank you Wolfgang! The CMakeLists approach worked.

Best regards,
Lev Karatun.

2015-03-24 7:27 GMT-04:00 Wolfgang Bangerth <bangerth at tamu.edu>:

>
> Lev,
>
>  I'm trying to compile a plugin into a shared library for the first time,
>> and
>> I'm getting a million errors. I resolved ones related to my code, but I'm
>> confused with the fact that (according to the g++ output) I'm getting a
>> lot of
>> errors in the deal.II files and files that are part of Aspect
>> distribution.
>>
>> The command I'm executing is as follows:
>> g++ -I/scratch/r/russ/lkaratun/aspect/aspect/include/
>> -I/scratch/r/russ/lkaratun/aspect/dealii82/include/
>> -I/scratch/r/russ/lkaratun/aspect/dealii82/include/deal.II/base/
>> -I/home/r/russ/lkaratun/aspect/trilinos/include
>> -I/home/r/russ/lkaratun/aspect/p4est/FAST/include -fPIC -shared
>> plasticT.cc -o
>> plasticT.so
>>
>> The output is here:
>> https://www.dropbox.com/s/ab7ljpwqunqog2q/compile_log?dl=0
>>
>> Could someone please take a look and tell me what I'm doing wrong?
>>
>
> The question is how you build the plugin. Are you just calling the
> compiler on the command line? This will not be likely to work because you
> may be calling a different compiler than used to compile deal.II, you may
> be passing a different set of flags, etc. Use the approach using the
> CMakeLists.txt file outlined in the manual instead -- this will set up the
> compiler, the flags, the include files, etc, all correctly.
>
> Best
>  Wolfgang
> --
> ------------------------------------------------------------------------
> Wolfgang Bangerth               email:            bangerth at math.tamu.edu
>                                 www: http://www.math.tamu.edu/~bangerth/
>
> _______________________________________________
> Aspect-devel mailing list
> Aspect-devel at geodynamics.org
> http://lists.geodynamics.org/cgi-bin/mailman/listinfo/aspect-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/aspect-devel/attachments/20150324/6269f28f/attachment.html>


More information about the Aspect-devel mailing list