<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">So here is what happen, I do:<div><br><div><div>svn co <a href="https://projects.coin-or.org/svn/OBOE/trunk">https://projects.coin-or.org/svn/OBOE/trunk</a> OBOE</div><div>cd OBOE</div></div><div><div>export BLAS=/usr/lib/libblas.a</div><div>export LAPACK=/usr/lib/liblapack.a</div><div>export LAPACKCPP_DIR=/usr/local/include/lapackpp</div><div>export LAPACKCPP_LIB=/usr/local/lib/liblapackpp.la</div><div>./configure</div></div><div><br></div><div>up to now everything is great, then i do:</div><div><br></div><div>make</div><div><br></div><div>but i get the error</div><div><br></div><div><div>In file included from AccpmBlasInterface.h:14:0,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from AccpmVector.C:13:</div><div>AccpmGenMatrix.h: In member function ‘double&amp; Accpm::AccpmGenMatrix::operator()(int, int) const’:</div><div>AccpmGenMatrix.h:86:86: error: invalid initialization of reference of type ‘double&amp;’ from expression of type ‘const double’</div><div>&nbsp; &nbsp; &nbsp;inline double&amp; operator()(int i, int j) const { return RealMatrix::operator()(i,j); } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div></div><div><br></div><div>then i don’t know how to edit to make it work but blindly follow one post….. After I edit according to the previous post: inline double&amp; operator()(int i, int j) ---&gt;&gt; inline const double&amp; operator()(int i, int j) I get this error:</div><div><br></div><div><div>In file included from AccpmBlasInterface.h:14:0,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;from AccpmVector.C:13:</div><div>AccpmGenMatrix.h:86:26: error: ‘const double&amp; Accpm::AccpmGenMatrix::operator()(int, int)’ cannot be overloaded</div><div>&nbsp; &nbsp; &nbsp;inline const double&amp; operator()(int i, int j) { return RealMatrix::operator()(i,j); } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ^</div><div>AccpmGenMatrix.h:85:26: error: with ‘const double&amp; Accpm::AccpmGenMatrix::operator()(int, int)’</div><div>&nbsp; &nbsp; &nbsp;inline const double&amp; operator()(int i, int j) { return RealMatrix::operator()(i,j); }</div></div><div><br></div><div>so basically the edit does not work for me….</div><div><br></div><div>Thank you very much for looking into this… Do you know what happened?</div><div><br></div><div>With regards,</div><div>Wenxuan</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br><div><div>On Nov 26, 2014, at 2:05 AM, Nidhi Sawhney &lt;<a href="mailto:nsawhney@gmail.com">nsawhney@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Sorry which is the error you get? The first or second after the fix, its not clear from your email.<div><br></div><div>-Nidhi</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 26, 2014 at 7:08 AM, <a href="mailto:key01023@gmail.com">key01023@gmail.com</a> <span dir="ltr">&lt;<a href="mailto:key01023@gmail.com" target="_blank">key01023@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;">A quick update, I try to download and re-install again and I could not reproduce the same error. But the error:<br>
<span class="">&gt; AccpmGenMatrix?.h:86:86: error: invalid initialization of reference of type ‘double&amp;’ from expression of type ‘const double’<br>
</span>is persistent….<br>
Any help?<br>
<br>
With regards,<br>
Wenxuan<br>
<div class="HOEnZb"><div class="h5"><br>
On Nov 26, 2014, at 12:35 AM, <a href="mailto:key01023@gmail.com">key01023@gmail.com</a> wrote:<br>
<br>
&gt; Hi,<br>
&gt; After desperately trying to compile lapack++ on my Mac, I gave up and set up a linux virtual machine Ubuntu-14.0.2. So, I finally installed lapack++ and try to compile OBOE:<br>
&gt;<br>
&gt; The first error I meet is:<br>
&gt; AccpmGenMatrix?.h: In member function ‘double&amp; Accpm::AccpmGenMatrix::operator()(int, int) const’:<br>
&gt; AccpmGenMatrix?.h:86:86: error: invalid initialization of reference of type ‘double&amp;’ from expression of type ‘const double’<br>
&gt;<br>
&gt; I followed this post:<br>
&gt; <a href="https://projects.coin-or.org/OBOE/attachment/ticket/14/oboe-ticket-14-email-trace.txt" target="_blank">https://projects.coin-or.org/OBOE/attachment/ticket/14/oboe-ticket-14-email-trace.txt</a><br>
&gt;<br>
&gt; inline double&amp; operator()(int i, int j) ---&gt;&gt; inline const double&amp; operator()(int i, int j)<br>
&gt;<br>
&gt; now I have the new error no one had before:<br>
&gt;<br>
&gt; AccpmGenMatrix.C: In member function ‘void Accpm::AccpmGenMatrix::assignRow(int, const Accpm::AccpmVector&amp;)’:<br>
&gt; AccpmGenMatrix.C:89:23: error: assignment of read-only location ‘Accpm::AccpmGenMatrix::operator()(rowId, j)’<br>
&gt;&nbsp; &nbsp; &nbsp;(*this)(rowId, j) = v(j);<br>
&gt;<br>
&gt; Then I am really lost and cannot find any post helping me to resolve this issue…. Hope someone could help… Thank you very much.<br>
&gt;<br>
&gt; With regards,<br>
&gt; Wenxuan<br>
<br>
<br>
_______________________________________________<br>
OBOE mailing list<br>
<a href="mailto:OBOE@list.coin-or.org">OBOE@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/oboe" target="_blank">http://list.coin-or.org/mailman/listinfo/oboe</a></div></div></blockquote></div><br></div>
</blockquote></div><br></div></div></body></html>