scipopt / soplex

Sequential object-oriented simPlex
Other
59 stars 18 forks source link

no arguments to ‘sign’ that depend on a template parameter in solverational.hpp:4659:17 #4

Closed bhomaidan1990 closed 2 years ago

bhomaidan1990 commented 2 years ago

When I try to call the make I get the following error:

soplex/src/soplex/solverational.hpp:4659:17: error: there are no arguments to ‘sign’ that depend on a template parameter, so a declaration of ‘sign’ must be available [-fpermissive]
       int sig = sign(_workSol._dual[r]);
                 ^~~~

I'm using Boost 1.71.0, OS: Ubuntu 20.04.

Can you please tell me how to resolve it? thanks in advance.

svigerske commented 2 years ago

I cannot reproduce. I took an Ubuntu 20.04 image from Docker hub, installed packages gcc g++ libboost1.71 make libgmp-dev, and compiled SoPlex with make ZLIB=false and didn't get any compilation error.

You may have to give more details on what you are using, in particular naming the compiler and its version, and what you did do get to this error.

bhomaidan1990 commented 2 years ago

It turns out to be a compatibility issue with Boost, thanks for your reply.