[OBOE] compiling OBOE

key01023 at gmail.com key01023 at gmail.com
Wed Nov 26 02:39:36 EST 2014


I am using:
g++ (Ubuntu 4.8.2-19ubuntu1) 4.8.2

Thank you.

On Nov 26, 2014, at 2:26 AM, Nidhi Sawhney <nsawhney at gmail.com> wrote:

> Looks like incompatibility with the c++ compiler. What version of compiler do you have?
> 
> On Wed, Nov 26, 2014 at 8:19 AM, key01023 at gmail.com <key01023 at gmail.com> wrote:
> So here is what happen, I do:
> 
> svn co https://projects.coin-or.org/svn/OBOE/trunk OBOE
> cd OBOE
> export BLAS=/usr/lib/libblas.a
> export LAPACK=/usr/lib/liblapack.a
> export LAPACKCPP_DIR=/usr/local/include/lapackpp
> export LAPACKCPP_LIB=/usr/local/lib/liblapackpp.la
> ./configure
> 
> up to now everything is great, then i do:
> 
> make
> 
> but i get the error
> 
> In file included from AccpmBlasInterface.h:14:0,
>                  from AccpmVector.C:13:
> AccpmGenMatrix.h: In member function ‘double& Accpm::AccpmGenMatrix::operator()(int, int) const’:
> AccpmGenMatrix.h:86:86: error: invalid initialization of reference of type ‘double&’ from expression of type ‘const double’
>      inline double& operator()(int i, int j) const { return RealMatrix::operator()(i,j); }                            
> 
> 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:
> 
> In file included from AccpmBlasInterface.h:14:0,
>                  from AccpmVector.C:13:
> AccpmGenMatrix.h:86:26: error: ‘const double& Accpm::AccpmGenMatrix::operator()(int, int)’ cannot be overloaded
>      inline const double& operator()(int i, int j) { return RealMatrix::operator()(i,j); }                             
>                           ^
> AccpmGenMatrix.h:85:26: error: with ‘const double& Accpm::AccpmGenMatrix::operator()(int, int)’
>      inline const double& operator()(int i, int j) { return RealMatrix::operator()(i,j); }
> 
> so basically the edit does not work for me….
> 
> Thank you very much for looking into this… Do you know what happened?
> 
> With regards,
> Wenxuan
> 
> 
> 
> 
> 
> On Nov 26, 2014, at 2:05 AM, Nidhi Sawhney <nsawhney at gmail.com> wrote:
> 
>> Sorry which is the error you get? The first or second after the fix, its not clear from your email.
>> 
>> -Nidhi
>> 
>> On Wed, Nov 26, 2014 at 7:08 AM, key01023 at gmail.com <key01023 at gmail.com> wrote:
>> A quick update, I try to download and re-install again and I could not reproduce the same error. But the error:
>> > AccpmGenMatrix?.h:86:86: error: invalid initialization of reference of type ‘double&’ from expression of type ‘const double’
>> is persistent….
>> Any help?
>> 
>> With regards,
>> Wenxuan
>> 
>> On Nov 26, 2014, at 12:35 AM, key01023 at gmail.com wrote:
>> 
>> > Hi,
>> > 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:
>> >
>> > The first error I meet is:
>> > AccpmGenMatrix?.h: In member function ‘double& Accpm::AccpmGenMatrix::operator()(int, int) const’:
>> > AccpmGenMatrix?.h:86:86: error: invalid initialization of reference of type ‘double&’ from expression of type ‘const double’
>> >
>> > I followed this post:
>> > https://projects.coin-or.org/OBOE/attachment/ticket/14/oboe-ticket-14-email-trace.txt
>> >
>> > inline double& operator()(int i, int j) --->> inline const double& operator()(int i, int j)
>> >
>> > now I have the new error no one had before:
>> >
>> > AccpmGenMatrix.C: In member function ‘void Accpm::AccpmGenMatrix::assignRow(int, const Accpm::AccpmVector&)’:
>> > AccpmGenMatrix.C:89:23: error: assignment of read-only location ‘Accpm::AccpmGenMatrix::operator()(rowId, j)’
>> >     (*this)(rowId, j) = v(j);
>> >
>> > Then I am really lost and cannot find any post helping me to resolve this issue…. Hope someone could help… Thank you very much.
>> >
>> > With regards,
>> > Wenxuan
>> 
>> 
>> _______________________________________________
>> OBOE mailing list
>> OBOE at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/oboe
>> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/oboe/attachments/20141126/8bbda5b9/attachment.html>


More information about the OBOE mailing list