<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;"><div>I am using:</div><div><div>g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2</div></div><div><br></div><div>Thank you.</div><br><div><div>On Nov 26, 2014, at 2:26 AM, Nidhi Sawhney <<a href="mailto:nsawhney@gmail.com">nsawhney@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Looks like incompatibility with the c++ compiler. What version of compiler do you have?</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 26, 2014 at 8:19 AM, <a href="mailto:key01023@gmail.com">key01023@gmail.com</a> <span dir="ltr"><<a href="mailto:key01023@gmail.com" target="_blank">key01023@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">So here is what happen, I do:<div><br><div><div>svn co <a href="https://projects.coin-or.org/svn/OBOE/trunk" target="_blank">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/<a href="http://liblapackpp.la/" target="_blank">liblapackpp.la</a></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> from AccpmVector.C:13:</div><div>AccpmGenMatrix.h: In member function ‘double& Accpm::AccpmGenMatrix::operator()(int, int) const’:</div><div>AccpmGenMatrix.h:86:86: error: invalid initialization of reference of type ‘double&’ from expression of type ‘const double’</div><div> inline double& operator()(int i, int j) const { return RealMatrix::operator()(i,j); } </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& operator()(int i, int j) --->> inline const double& 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> from AccpmVector.C:13:</div><div>AccpmGenMatrix.h:86:26: error: ‘const double& Accpm::AccpmGenMatrix::operator()(int, int)’ cannot be overloaded</div><div> inline const double& operator()(int i, int j) { return RealMatrix::operator()(i,j); } </div><div> ^</div><div>AccpmGenMatrix.h:85:26: error: with ‘const double& Accpm::AccpmGenMatrix::operator()(int, int)’</div><div> inline const double& 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><div class="h5"><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 <<a href="mailto:nsawhney@gmail.com" target="_blank">nsawhney@gmail.com</a>> wrote:</div><br><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" target="_blank">key01023@gmail.com</a> <span dir="ltr"><<a href="mailto:key01023@gmail.com" target="_blank">key01023@gmail.com</a>></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">A quick update, I try to download and re-install again and I could not reproduce the same error. But the error:<br>
<span>> AccpmGenMatrix?.h:86:86: error: invalid initialization of reference of type ‘double&’ from expression of type ‘const double’<br>
</span>is persistent….<br>
Any help?<br>
<br>
With regards,<br>
Wenxuan<br>
<div><br>
On Nov 26, 2014, at 12:35 AM, <a href="mailto:key01023@gmail.com" target="_blank">key01023@gmail.com</a> wrote:<br>
<br>
> Hi,<br>
> 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>
><br>
> The first error I meet is:<br>
> AccpmGenMatrix?.h: In member function ‘double& Accpm::AccpmGenMatrix::operator()(int, int) const’:<br>
> AccpmGenMatrix?.h:86:86: error: invalid initialization of reference of type ‘double&’ from expression of type ‘const double’<br>
><br>
> I followed this post:<br>
> <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>
><br>
> inline double& operator()(int i, int j) --->> inline const double& operator()(int i, int j)<br>
><br>
> now I have the new error no one had before:<br>
><br>
> AccpmGenMatrix.C: In member function ‘void Accpm::AccpmGenMatrix::assignRow(int, const Accpm::AccpmVector&)’:<br>
> AccpmGenMatrix.C:89:23: error: assignment of read-only location ‘Accpm::AccpmGenMatrix::operator()(rowId, j)’<br>
> (*this)(rowId, j) = v(j);<br>
><br>
> 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>
><br>
> With regards,<br>
> Wenxuan<br>
<br>
<br>
_______________________________________________<br>
OBOE mailing list<br>
<a href="mailto:OBOE@list.coin-or.org" target="_blank">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></blockquote></div><br></div>
</blockquote></div><br></div></div></div></div></div></blockquote></div><br></div>
</blockquote></div><br></body></html>