-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clp fails to compile when COIN_BIG_INDEX = 2 #95
Comments
Still an issue with current CoinUtils/trunk. Index: src/CoinTypes.hpp
===================================================================
--- src/CoinTypes.hpp (revision 2110)
+++ src/CoinTypes.hpp (working copy)
@@ -21,7 +21,7 @@
//=============================================================================
#ifndef COIN_BIG_INDEX
-#define COIN_BIG_INDEX 0
+#define COIN_BIG_INDEX 2
#endif
#if COIN_BIG_INDEX == 0 and when building with
|
The problem might be gone because |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I try to compiles Clp with COIN_BIG_INDEX=2, I've got the following error message:
[ 1%] Building CXX object CoinUtils/CMakeFiles/libCoinUtils.dir/src/CoinOslFactorization.cpp.o
/home/artelys/repository/coin/Clp/CoinUtils/src/CoinOslFactorization.cpp: Dans la fonction membre « virtual void CoinOslFactorization::getAreas(int, int, CoinBigIndex, CoinBigIndex) »:
/home/artelys/repository/coin/Clp/CoinUtils/src/CoinOslFactorization.cpp:162:44: erreur : no matching function for call to « CoinMax(CoinBigIndex&, int&) »
factInfo_.eta_size=CoinMax(size,oldnnetas);
^
In file included from /home/artelys/repository/coin/Clp/CoinUtils/src/CoinIndexedVector.hpp:20:0,
from /home/artelys/repository/coin/Clp/CoinUtils/src/CoinOslFactorization.hpp:18,
from /home/artelys/repository/coin/Clp/CoinUtils/src/CoinOslFactorization.cpp:10:
/home/artelys/repository/coin/Clp/CoinUtils/src/CoinHelperFunctions.hpp:548:1: note : candidate: template T CoinMax(T, T)
CoinMax(register const T x1, register const T x2)
^~~~~~~
/home/artelys/repository/coin/Clp/CoinUtils/src/CoinHelperFunctions.hpp:548:1: note : template argument deduction/substitution failed:
/home/artelys/repository/coin/Clp/CoinUtils/src/CoinOslFactorization.cpp:162:44: note : deduced conflicting types for parameter « T » (« long long int » and « int »)
factInfo_.eta_size=CoinMax(size,oldnnetas);
^
/home/artelys/repository/coin/Clp/CoinUtils/src/CoinOslFactorization.cpp: Dans la fonction membre « virtual void CoinOslFactorization::preProcess() »:
/home/artelys/repository/coin/Clp/CoinUtils/src/CoinOslFactorization.cpp:224:48: erreur : cannot convert « int* » to « CoinBigIndex* {aka long long int*} » in initialization
CoinBigIndex * startColumnU=factInfo_.xcsadr+1;
^
/home/artelys/repository/coin/Clp/CoinUtils/src/CoinOslFactorization.cpp: Dans la fonction membre « int CoinOslFactorization::factorize(const CoinPackedMatrix&, int*, int*, double) »:
/home/artelys/repository/coin/Clp/CoinUtils/src/CoinOslFactorization.cpp:1434:29: erreur : cannot convert « CoinBigIndex* {aka long long int*} » to « int* » in initialization
int * startColumnU=starts();
^
CoinUtils/CMakeFiles/libCoinUtils.dir/build.make:302 : la recette pour la cible « CoinUtils/CMakeFiles/libCoinUtils.dir/src/CoinOslFactorization.cpp.o » a échouée
make[2]: *** [CoinUtils/CMakeFiles/libCoinUtils.dir/src/CoinOslFactorization.cpp.o] Erreur 1
CMakeFiles/Makefile2:999 : la recette pour la cible « CoinUtils/CMakeFiles/libCoinUtils.dir/all » a échouée
make[1]: *** [CoinUtils/CMakeFiles/libCoinUtils.dir/all] Erreur 2
Makefile:160 : la recette pour la cible « all » a échoué
Tested with gcc-6.3.1 on Fedora 25 64 bits.
The text was updated successfully, but these errors were encountered: