[CIG-MC] Exchanger compiler error with PGI

tan2 tan2tan2 at gmail.com
Mon Oct 15 17:59:50 PDT 2012


Hi Rob,

This is a bug in PGI compiler. To work around it, you can change the code
to (untested):

        std::vector<int>::iterator iter = beginSrcNodes.begin();
        ++iter;
        partial_sum(numSrcNodes.begin(), numSrcNodes.end(),
                    iter);


Eh

On Tue, Oct 16, 2012 at 7:34 AM, Robert Moucha <rmoucha at gmail.com> wrote:

> Hi All,
>
> I am trying to compile Exchanger 1.0.1 using PGI, I get the following
> error:
>
> "lib/Sink.cc", line 102: error: expression must be a modifiable lvalue
>                     ++beginSrcNodes.begin());
>                       ^
>
> 1 error detected in the compilation of "lib/Sink.cc".
> make[1]: *** [Sink.lo] Error 1
>
> I do not get this error with gcc
>
> Any ideas?
> Thanks
>
> Rob
> --
> ------------------------------------------------------------
> Robert Moucha
> Assistant Professor of Geophysics
> Department of Earth Sciences
> 204 Heroy Geology Lab
> Syracuse University
> Syracuse, NY, 13244-1070
> _______________________________________________
> CIG-MC mailing list
> CIG-MC at geodynamics.org
> http://geodynamics.org/cgi-bin/mailman/listinfo/cig-mc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://geodynamics.org/pipermail/cig-mc/attachments/20121016/62923fbc/attachment.htm 


More information about the CIG-MC mailing list