[Coin-discuss] Error when compiling with Visual Studio using the CoinBinary project

Ted Ralphs ted at lehigh.edu
Wed Dec 11 01:10:57 EST 2013


The instructions on the wiki only work out of the box if you build the code
yourself with the solutions included in the SVN checkout. The installer is
brand new and so we are still working some of the kinks out and updating
instructions in various places to use those libraries. To get the libraries
to work with the posted solution files, I had to

1. Switch to release mode.
2. Change the directories to look for libraries and header files where they
are installed by the installer
3. Add some additional libraries
4. Edit main.cpp slightly to account for different header file installation
locations

I will update the instructions when time permits, but for now, I attached
files to the wiki page. You should be able to build with these out of the
box (perhaps switching to release mode first).

Cheers,

Ted






On Tue, Dec 10, 2013 at 1:10 PM, Marcos Roberto Silva <
marcos.roberto.silva at uol.com.br> wrote:

> Hi all.
> I'm trying to follow the instructions provided by the link:
> https://projects.coin-or.org/Cbc/wiki/VSSetup
>
> But I'm getting some linking errors:
>
> 1>------ Build started: Project: coin_example2, Configuration: Debug Win32
> ------
> 1>  main.cpp
> 1>libCbc.lib(CbcModel.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcStatistics.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcCountRowCut.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcObjectUpdateData.obj) : error LNK2038: mismatch detected
> for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcCutGenerator.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcMessage.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcTree.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcCompareDefault.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcSimpleIntegerPseudoCost.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCbc.lib(CbcSimpleInteger.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcSOS.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcClique.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcBranchDynamic.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcSimpleIntegerDynamicPseudoCost.obj) : error LNK2038:
> mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match
> value '2' in main.obj
> 1>libCbc.lib(CbcTreeLocal.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcHeuristic.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcNodeInfo.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcNode.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcGeneralDepth.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcSubProblem.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcDummyBranchingObject.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCbc.lib(CbcStrategy.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcFollowOn.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcHeuristicRINS.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcCompareDepth.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcHeuristicFPump.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcObject.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcBranchingObject.obj) : error LNK2038: mismatch detected
> for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcBranchDecision.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcBranchDefaultDecision.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCbc.lib(CbcPartialNodeInfo.obj) : error LNK2038: mismatch detected
> for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcFullNodeInfo.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcGeneral.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcHeuristicDive.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcHeuristicLocal.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCbc.lib(CbcBranchCut.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCgl.lib(CglTreeInfo.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCgl.lib(CglProbing.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCgl.lib(CglGomory.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCgl.lib(CglStored.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCgl.lib(CglPreProcess.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCgl.lib(CglDuplicateRow.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCgl.lib(CglCutGenerator.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCgl.lib(CglClique.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCgl.lib(CglKnapsackCover.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCgl.lib(CglMixedIntegerRounding2.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCgl.lib(CglFlowCover.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCgl.lib(CglMessage.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCgl.lib(CglCliqueHelper.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpModel.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpDualRowDantzig.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpSimplex.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpNode.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpPresolve.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpSimplexOther.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpEventHandler.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpPackedMatrix.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpMessage.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpQuadraticObjective.obj) : error LNK2038: mismatch detected
> for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpLinearObjective.obj) : error LNK2038: mismatch detected
> for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpPlusMinusOneMatrix.obj) : error LNK2038: mismatch detected
> for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpDualRowPivot.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpFactorization.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpNonLinearCost.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpSimplexNonlinear.obj) : error LNK2038: mismatch detected
> for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpSimplexDual.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpSimplexPrimal.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpSolve.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpPrimalColumnSteepest.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libClp.lib(ClpDualRowSteepest.obj) : error LNK2038: mismatch detected
> for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpHelperFunctions.obj) : error LNK2038: mismatch detected
> for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpInterior.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpCholeskyBase.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpCholeskyUfl.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpPrimalColumnDantzig.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libClp.lib(ClpDynamicMatrix.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpMatrixBase.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpObjective.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpNetworkBasis.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpCholeskyDense.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpCholeskyMumps.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(Idiot.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpPrimalColumnPivot.obj) : error LNK2038: mismatch detected
> for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpLsqr.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpPdco.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(ClpPredictorCorrector.obj) : error LNK2038: mismatch detected
> for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libClp.lib(IdiSolve.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCoinUtils.lib(CoinMessageHandler.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinWarmStartBasis.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinPackedVectorBase.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinPackedVector.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinPackedMatrix.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinError.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCoinUtils.lib(CoinSearchTree.obj) : error LNK2038: mismatch detected
> for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCoinUtils.lib(CoinFactorization4.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinIndexedVector.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinOslFactorization.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinFactorization1.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinBuild.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCoinUtils.lib(CoinShallowPackedVector.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinModel.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCoinUtils.lib(CoinModelUseful.obj) : error LNK2038: mismatch detected
> for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCoinUtils.lib(CoinMessage.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCoinUtils.lib(CoinFileIO.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCoinUtils.lib(CoinDenseFactorization.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinLpIO.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCoinUtils.lib(CoinPresolveEmpty.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinPresolveZeros.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinPresolveSingleton.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinPresolveImpliedFree.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinPresolveForcing.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinPresolveTighten.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinPresolveTripleton.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinPresolveDoubleton.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinPresolveDual.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinPresolveDupcol.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinPresolveUseless.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinPresolveFixed.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinPrePostsolveMatrix.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinPresolveMatrix.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinPresolveHelperFunctions.obj) : error LNK2038:
> mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match
> value '2' in main.obj
> 1>libCoinUtils.lib(CoinPostsolveMatrix.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinSimpFactorization.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinFactorization3.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinStructuredModel.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinDenseVector.obj) : error LNK2038: mismatch detected
> for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCoinUtils.lib(CoinFinite.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libCoinUtils.lib(CoinOslFactorization3.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinOslFactorization2.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinFactorization2.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinModelUseful2.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libCoinUtils.lib(CoinPresolveSubst.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>libOsi.lib(OsiSolverInterface.obj) : error LNK2038: mismatch detected
> for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libOsi.lib(OsiAuxInfo.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libOsi.lib(OsiRowCut.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libOsi.lib(OsiBranchingObject.obj) : error LNK2038: mismatch detected
> for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libOsi.lib(OsiCuts.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libOsi.lib(OsiRowCutDebugger.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libOsi.lib(OsiChooseVariable.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libOsi.lib(OsiColCut.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libOsi.lib(OsiSolverBranch.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libOsi.lib(OsiPresolve.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libOsi.lib(OsiNames.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libOsi.lib(OsiCut.obj) : error LNK2038: mismatch detected for
> '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj
> 1>libOsiClp.lib(OsiClpSolverInterface.obj) : error LNK2038: mismatch
> detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in
> main.obj
> 1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other
> libs; use /NODEFAULTLIB:library
> 1>libClp.lib(ClpCholeskyUfl.obj) : error LNK2019: unresolved external
> symbol __glp_amd_order referenced in function "public: virtual int
> __thiscall ClpCholeskyUfl::order(class ClpInterior *)"
> (?order at ClpCholeskyUfl@@UAEHPAVClpInterior@@@Z)
> 1>libClp.lib(ClpCholeskyUfl.obj) : error LNK2019: unresolved external
> symbol __glp_amd_defaults referenced in function "public: virtual int
> __thiscall ClpCholeskyUfl::order(class ClpInterior *)"
> (?order at ClpCholeskyUfl@@UAEHPAVClpInterior@@@Z)
> 1>libClp.lib(ClpCholeskyMumps.obj) : error LNK2019: unresolved external
> symbol _dmumps_c referenced in function "public: __thiscall
> ClpCholeskyMumps::ClpCholeskyMumps(int)" (??0ClpCholeskyMumps@@QAE at H@Z)
> 1>libClp.lib(ClpCholeskyMumps.obj) : error LNK2019: unresolved external
> symbol _MPI_Comm_rank referenced in function "public: __thiscall
> ClpCholeskyMumps::ClpCholeskyMumps(int)" (??0ClpCholeskyMumps@@QAE at H@Z)
> 1>libClp.lib(ClpCholeskyMumps.obj) : error LNK2019: unresolved external
> symbol _MPI_Init referenced in function "public: __thiscall
> ClpCholeskyMumps::ClpCholeskyMumps(int)" (??0ClpCholeskyMumps@@QAE at H@Z)
> 1>libClp.lib(ClpCholeskyMumps.obj) : error LNK2019: unresolved external
> symbol _MPI_Finalize referenced in function "public: virtual __thiscall
> ClpCholeskyMumps::~ClpCholeskyMumps(void)" (??1ClpCholeskyMumps@@UAE at XZ)
> 1>libCoinUtils.lib(CoinFactorization4.obj) : error LNK2019: unresolved
> external symbol _DGETRS referenced in function "protected: void __thiscall
> CoinFactorization::updateColumnTransposeL(class CoinIndexedVector *)const "
> (?updateColumnTransposeL at CoinFactorization@@IBEXPAVCoinIndexedVector@@@Z)
> 1>libCoinUtils.lib(CoinDenseFactorization.obj) : error LNK2001: unresolved
> external symbol _DGETRS
> 1>libCoinUtils.lib(CoinFactorization3.obj) : error LNK2001: unresolved
> external symbol _DGETRS
>  1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_get_col_name referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_get_col_kind referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_get_col_type referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_get_col_ub referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_get_col_lb referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_get_obj_coef referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_get_obj_dir referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_get_row_name referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_get_row_type referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_get_row_ub referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_get_row_lb referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_get_mat_row referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_get_prob_name referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_get_num_nz referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_get_num_cols referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_get_num_rows referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_mpl_build_prob referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_create_prob referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_mpl_generate referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_mpl_read_data referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_mpl_free_wksp referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_mpl_read_model referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinMpsIO.obj) : error LNK2019: unresolved external
> symbol _glp_mpl_alloc_wksp referenced in function "public: int __thiscall
> CoinMpsIO::readGMPL(char const *,char const *,bool)" (?readGMPL at CoinMpsIO
> @@QAEHPBD0_N at Z)
> 1>libCoinUtils.lib(CoinDenseFactorization.obj) : error LNK2019: unresolved
> external symbol _DGETRF referenced in function "public: virtual int
> __thiscall CoinDenseFactorization::factor(void)"
> (?factor at CoinDenseFactorization@@UAEHXZ)
> 1>libCoinUtils.lib(CoinFactorization2.obj) : error LNK2001: unresolved
> external symbol _DGETRF
> 1>c:\users\administrator\documents\visual studio
> 2010\Projects\coin_example2\Debug\coin_example2.exe : fatal error LNK1120:
> 31 unresolved externals
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
>
>
> Could you please help me to solve this problem?
>
> I downloaded the package COIN-OR-1.7.3-win32-msvc10.exe<http://www.coin-or.org/download/binary/CoinAll/COIN-OR-1.7.3-win32-msvc10.exe> using
> the link:
> http://www.coin-or.org/download/binary/CoinAll/
>
> about one hour ago.
>
> Thank you.
>
> Marcos
>
>
> 2013/12/10 Andreas Lundell <andreas.lundell at abo.fi>
>
>> It seems that everything is working now. I tested all three packages.
>>
>> Thanks for your help!
>>
>> Andreas
>>
>>
>>
>> On 10.12.2013 00:34, Ted Ralphs wrote:
>>
>>> I now updated the MSVC11 package as well.
>>>
>>> Cheers,
>>>
>>> Ted
>>>
>>>
>>> On Mon, Dec 9, 2013 at 4:25 PM, Ted Ralphs <ted at lehigh.edu <mailto:
>>> ted at lehigh.edu>> wrote:
>>>
>>>     For some reason, the OS library was not included in the
>>>     distribution. I updated the packages for MSVC9 and MSVC10. Can you
>>>     check whether it works now?
>>>
>>>     Cheers,
>>>
>>>     Ted
>>>
>>>
>>>     On Thu, Dec 5, 2013 at 10:17 AM, Andreas Lundell
>>>     <andreas.lundell at abo.fi <mailto:andreas.lundell at abo.fi>> wrote:
>>>
>>>         Hi all,
>>>
>>>         The last couple of days I've been trying to compile a simple
>>>         test project in Visual Studio using the binary libraries from
>>>         the CoinBinary/CoinAll project (COIN-OR-1.7.3) dated 26-27
>>>         November 2013.
>>>
>>>         If I use the following code:
>>>
>>>             #include "OSInstance.h"
>>>             ...
>>>             int _tmain(int argc, _TCHAR* argv[])
>>>             {
>>>                 OSInstance * instance;
>>>                 instance = new OSInstance();
>>>                 return 0;
>>>             }
>>>
>>>         The compiler gives back something like "error LNK2019:
>>>         unresolved external symbol "public: __thiscall
>>>         OSInstance::OSInstance(void)" (??0OSInstance@@QAE at XZ)
>>>         referenced in function _wmain".
>>>
>>>         The same is true if I change the OSInstance to some other
>>>         class. I've included the libraries in the lib-folder of the
>>>         COIN-OR-1.7.3 package and the header files in the
>>>         include-folder are also used by the compiler.  I've also tried
>>>         the different versions available of the package (msvc9-11) in
>>>         combination with the corresponding version of Visual Studio
>>>         (2008, 2010 and 2012).
>>>
>>>         The binary files bundled with the package works well.
>>>
>>>         Any ideas what's wrong and how to fix it?
>>>
>>>         Regards,
>>>
>>>         Andreas Lundell
>>>         _______________________________________________
>>>         Coin-discuss mailing list
>>>         Coin-discuss at list.coin-or.org
>>>         <mailto:Coin-discuss at list.coin-or.org>
>>>
>>>         http://list.coin-or.org/mailman/listinfo/coin-discuss
>>>
>>>
>>>
>>>
>>>     --     Dr. Ted Ralphs
>>>     Associate Professor, Lehigh University
>>>     (610) 628-1280 <tel:%28610%29%20628-1280>
>>>
>>>     ted 'at' lehigh 'dot' edu
>>>     coral.ie.lehigh.edu/~ted <http://coral.ie.lehigh.edu/%7Eted>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Dr. Ted Ralphs
>>> Associate Professor, Lehigh University
>>> (610) 628-1280
>>> ted 'at' lehigh 'dot' edu
>>> coral.ie.lehigh.edu/~ted <http://coral.ie.lehigh.edu/%7Eted>
>>>
>>
>> --
>>
>> Post doc researcher
>> Optimization and Systems Engineering Research Group
>>
>> Process Design and Systems Engineering
>> Åbo Akademi University
>> Biskopsgatan 8,
>> FIN-20500 Turku, Finland
>>
>> E-mail: andreas.lundell at abo.fi
>>
>>
>> _______________________________________________
>> Coin-discuss mailing list
>> Coin-discuss at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/coin-discuss
>>
>
>


-- 
Dr. Ted Ralphs
Associate Professor, Lehigh University
(610) 628-1280
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coin-discuss/attachments/20131211/a67c80c3/attachment-0001.html>


More information about the Coin-discuss mailing list