<b>Hi guys<br>I was trying to compile the IPOPT on windows. and I followed the instructions in the README file in $HOME<a href="file:///C:/msys/1.0/home/pony/Ipopt/Ipopt/MSVisualStudio/v9/">/Ipopt/MSVisualStudio/v9/.</a><br>
everything works fine until step 8<br>even though I got all the head files and lib files, the compile failed as the C++ complained that <br>f2c.h cannot be found<br clear="all">cannot open input file vcf2c.lib<br>and for completion I just copy all the output of my compile below<br>
do I have to add some headfiles in the Ipopt.sln,or what else should be done before compiling?</b><br><br>1>------ Rebuild All started: Project: libCoinBlas, Configuration: Release Win32 ------<br>2>------ Rebuild All started: Project: libCoinHSL, Configuration: Release Win32 ------<br>
1>Deleting intermediate and output files for project 'libCoinBlas', configuration 'Release|Win32'<br>2>Deleting intermediate and output files for project 'libCoinHSL', configuration 'Release|Win32'<br>
2>Compiling...<br>1>Compiling...<br>1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release<br>1>dasum.c<br>2>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release<br>
2>ma27ad.c<br>2>.\ma27ad.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>1>.\dasum.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
2>mc19ad.c<br>1>xerbla.c<br>2>.\mc19ad.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>2>Generating Code...<br>1>.\xerbla.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
2>Build log was saved at "file://c:\msys\1.0\home\pony\Ipopt\Ipopt\MSVisualStudio\v9\libCoinHSL\Release\BuildLog.htm"<br>1>lsame.c<br>2>libCoinHSL - 2 error(s), 1 warning(s)<br>1>.\lsame.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
1>idamax.c<br>1>.\idamax.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>1>dtrsv.c<br>1>.\dtrsv.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
1>dtrsm.c<br>1>.\dtrsm.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>1>dtrmv.c<br>1>.\dtrmv.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
1>dtrmm.c<br>1>.\dtrmm.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>1>dtpsv.c<br>1>.\dtpsv.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
1>dtpmv.c<br>1>.\dtpmv.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>1>dtbsv.c<br>1>.\dtbsv.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
1>dtbmv.c<br>1>.\dtbmv.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>1>dsyrk.c<br>1>.\dsyrk.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
1>dsyr2k.c<br>1>.\dsyr2k.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>1>dsyr2.c<br>1>.\dsyr2.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
1>dsyr.c<br>1>.\dsyr.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>1>dsymv.c<br>1>.\dsymv.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
1>dsymm.c<br>1>.\dsymm.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>1>dswap.c<br>1>.\dswap.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
1>dspr2.c<br>1>.\dspr2.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>1>Generating Code...<br>1>Compiling...<br>1>dspr.c<br>1>.\dspr.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
1>dspmv.c<br>1>.\dspmv.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>1>dsdot.c<br>1>.\dsdot.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
1>dscal.c<br>1>.\dscal.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>1>dsbmv.c<br>1>.\dsbmv.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
1>drotmg.c<br>1>.\drotmg.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>1>drotm.c<br>1>.\drotm.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
1>drotg.c<br>1>.\drotg.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>1>drot.c<br>1>.\drot.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
1>dnrm2.c<br>1>.\dnrm2.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>1>dger.c<br>1>.\dger.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
1>dgemv.c<br>1>.\dgemv.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>1>dgemm.c<br>1>.\dgemm.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
1>dgbmv.c<br>1>.\dgbmv.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>1>ddot.c<br>1>.\ddot.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
1>dcopy.c<br>1>.\dcopy.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>1>daxpy.c<br>1>.\daxpy.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
1>Generating Code...<br>1>Build log was saved at "file://c:\msys\1.0\home\pony\Ipopt\Ipopt\MSVisualStudio\v9\libCoinBlas\Release\BuildLog.htm"<br>1>libCoinBlas - 37 error(s), 1 warning(s)<br>3>------ Rebuild All started: Project: libCoinLapack, Configuration: Release Win32 ------<br>
3>Deleting intermediate and output files for project 'libCoinLapack', configuration 'Release|Win32'<br>3>Compiling...<br>3>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release<br>
3>dgetf2.c<br>3>.\dgetf2.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>3>iparmq.c<br>3>.\iparmq.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
3>ilaenv.c<br>3>.\ilaenv.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>3>ieeeck.c<br>3>.\ieeeck.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
3>dsytrd.c<br>3>.\dsytrd.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>3>dsytd2.c<br>3>.\dsytd2.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
3>dsyev.c<br>3>.\dsyev.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>3>dsterf.c<br>3>.\dsterf.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
3>dsteqr.c<br>3>.\dsteqr.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>3>dpotrs.c<br>3>.\dpotrs.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
3>dpotrf.c<br>3>.\dpotrf.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>3>dpotf2.c<br>3>.\dpotf2.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
3>dorgtr.c<br>3>.\dorgtr.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>3>dorgqr.c<br>3>.\dorgqr.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
3>dorgql.c<br>3>.\dorgql.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>3>dorg2r.c<br>3>.\dorg2r.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
3>dorg2l.c<br>3>.\dorg2l.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>3>dlatrd.c<br>3>.\dlatrd.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
3>dlaswp.c<br>3>.\dlaswp.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>3>dlassq.c<br>3>.\dlassq.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
3>Generating Code...<br>3>Compiling...<br>3>dlasrt.c<br>3>.\dlasrt.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>3>dlasr.c<br>3>.\dlasr.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
3>dlaset.c<br>3>.\dlaset.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>3>dlascl.c<br>3>.\dlascl.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
3>dlartg.c<br>3>.\dlartg.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>3>dlarft.c<br>3>.\dlarft.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
3>dlarfg.c<br>3>.\dlarfg.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>3>dlarfb.c<br>3>.\dlarfb.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
3>dlarf.c<br>3>.\dlarf.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>3>dlapy2.c<br>3>.\dlapy2.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
3>dlansy.c<br>3>.\dlansy.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>3>dlanst.c<br>3>.\dlanst.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
3>dlamch.c<br>3>.\dlamch.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>3>dlaev2.c<br>3>.\dlaev2.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
3>dlae2.c<br>3>.\dlae2.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>3>dgetrs.c<br>3>.\dgetrs.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>
3>dgetrf.c<br>3>.\dgetrf.c(13) : fatal error C1083: Cannot open include file: 'f2c.h': No such file or directory<br>3>Generating Code...<br>3>Build log was saved at "file://c:\msys\1.0\home\pony\Ipopt\Ipopt\MSVisualStudio\v9\libCoinLapack\Release\BuildLog.htm"<br>
3>libCoinLapack - 37 error(s), 1 warning(s)<br>4>------ Rebuild All started: Project: libIpopt, Configuration: Release Win32 ------<br>4>Deleting intermediate and output files for project 'libIpopt', configuration 'Release|Win32'<br>
4>Compiling...<br>4>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release<br>4>IpAdaptiveMuUpdate.cpp<br>4>IpPiecewisePenalty.cpp<br>4>IpCGSearchDirCalc.cpp<br>
4>IpCGPerturbationHandler.cpp<br>4>IpCGPenaltyRegOp.cpp<br>4>IpCGPenaltyLSAcceptor.cpp<br>4>IpCGPenaltyData.cpp<br>4>IpCGPenaltyCq.cpp<br>4>IpTNLPAdapter.cpp<br>4>IpStdInterfaceTNLP.cpp<br>4>IpStdCInterface.cpp<br>
4>IpSolveStatistics.cpp<br>4>IpIpoptApplication.cpp<br>4>IpInterfacesRegOp.cpp<br>4>IpUtils.cpp<br>4>..\..\..\src\Common\IpUtils.cpp(52) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)<br>
4>IpTaggedObject.cpp<br>4>IpRegOptions.cpp<br>4>IpOptionsList.cpp<br>4>IpObserver.cpp<br>4>IpJournalist.cpp<br>4>Generating Code...<br>4>Compiling...<br>4>IpDebug.cpp<br>4>IpZeroMatrix.cpp<br>4>IpVector.cpp<br>
4>IpTripletHelper.cpp<br>4>IpSymTMatrix.cpp<br>4>IpSymScaledMatrix.cpp<br>4>IpSymMatrix.cpp<br>4>IpSumSymMatrix.cpp<br>4>IpSumMatrix.cpp<br>4>IpScaledMatrix.cpp<br>4>IpMultiVectorMatrix.cpp<br>4>IpMatrix.cpp<br>
4>IpLowRankUpdateSymMatrix.cpp<br>4>IpLapack.cpp<br>4>IpIdentityMatrix.cpp<br>4>IpGenTMatrix.cpp<br>4>IpExpansionMatrix.cpp<br>4>IpDiagMatrix.cpp<br>4>IpDenseVector.cpp<br>4>IpDenseSymMatrix.cpp<br>
4>Generating Code...<br>4>Compiling...<br>4>IpDenseGenMatrix.cpp<br>4>IpCompoundVector.cpp<br>4>IpCompoundSymMatrix.cpp<br>4>IpCompoundMatrix.cpp<br>4>IpBlas.cpp<br>4>IpWarmStartIterateInitializer.cpp<br>
4>IpUserScaling.cpp<br>4>IpTSymLinearSolver.cpp<br>4>IpTripletToCSRConverter.cpp<br>4>IpTimingStatistics.cpp<br>4>IpStdAugSystemSolver.cpp<br>4>IpRestoRestoPhase.cpp<br>4>IpRestoMinC_1Nrm.cpp<br>4>IpRestoIterationOutput.cpp<br>
4>IpRestoIterateInitializer.cpp<br>4>IpRestoIpoptNLP.cpp<br>4>IpRestoFilterConvCheck.cpp<br>4>IpQualityFunctionMuOracle.cpp<br>4>IpProbingMuOracle.cpp<br>4>IpPenaltyLSAcceptor.cpp<br>4>Generating Code...<br>
4>Compiling...<br>4>IpPDSearchDirCalc.cpp<br>4>IpPDPerturbationHandler.cpp<br>4>IpPDFullSpaceSolver.cpp<br>4>IpOrigIterationOutput.cpp<br>4>IpOrigIpoptNLP.cpp<br>4>IpOptErrorConvCheck.cpp<br>4>IpNLPScaling.cpp<br>
4>IpMonotoneMuUpdate.cpp<br>4>IpMc19TSymScalingMethod.cpp<br>4>IpMa27TSolverInterface.cpp<br>4>IpLowRankAugSystemSolver.cpp<br>4>IpLoqoMuOracle.cpp<br>4>IpLinearSolversRegOp.cpp<br>4>IpLimMemQuasiNewtonUpdater.cpp<br>
4>IpLeastSquareMults.cpp<br>4>IpIteratesVector.cpp<br>4>IpIpoptData.cpp<br>4>IpIpoptCalculatedQuantities.cpp<br>4>IpIpoptAlg.cpp<br>4>IpGradientScaling.cpp<br>4>Generating Code...<br>4>Compiling...<br>
4>IpFilterLSAcceptor.cpp<br>4>IpFilter.cpp<br>4>IpExactHessianUpdater.cpp<br>4>IpEquilibrationScaling.cpp<br>4>IpDefaultIterateInitializer.cpp<br>4>IpBacktrackingLineSearch.cpp<br>4>IpAugRestoSystemSolver.cpp<br>
4>IpAlgorithmRegOp.cpp<br>4>IpAlgBuilder.cpp<br>4>Generating Code...<br>4>Compiling...<br>4>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release<br>
4>IpStdFInterface.c<br>4>..\..\..\src\Interfaces\IpStdFInterface.c(209) : warning C4311: 'type cast' : pointer truncation from 'void *' to 'fptr'<br>4>..\..\..\src\Interfaces\IpStdFInterface.c(219) : warning C4311: 'type cast' : pointer truncation from 'FUserData *' to 'fptr'<br>
4>..\..\..\src\Interfaces\IpStdFInterface.c(225) : warning C4312: 'type cast' : conversion from 'fptr' to 'FUserData *' of greater size<br>4>..\..\..\src\Interfaces\IpStdFInterface.c(230) : warning C4311: 'type cast' : pointer truncation from 'void *' to 'fptr'<br>
4>..\..\..\src\Interfaces\IpStdFInterface.c(244) : warning C4312: 'type cast' : conversion from 'fptr' to 'FUserData *' of greater size<br>4>..\..\..\src\Interfaces\IpStdFInterface.c(281) : warning C4312: 'type cast' : conversion from 'fptr' to 'FUserData *' of greater size<br>
4>..\..\..\src\Interfaces\IpStdFInterface.c(307) : warning C4312: 'type cast' : conversion from 'fptr' to 'FUserData *' of greater size<br>4>..\..\..\src\Interfaces\IpStdFInterface.c(331) : warning C4312: 'type cast' : conversion from 'fptr' to 'FUserData *' of greater size<br>
4>..\..\..\src\Interfaces\IpStdFInterface.c(356) : warning C4312: 'type cast' : conversion from 'fptr' to 'FUserData *' of greater size<br>4>Creating library...<br>4>IpObserver.obj : warning LNK4221: no public symbols found; archive member will be inaccessible<br>
4>IpDebug.obj : warning LNK4221: no public symbols found; archive member will be inaccessible<br>4>Build log was saved at "file://c:\msys\1.0\home\pony\Ipopt\Ipopt\MSVisualStudio\v9\libIpopt\Release\BuildLog.htm"<br>
4>libIpopt - 0 error(s), 14 warning(s)<br>5>------ Rebuild All started: Project: hs071_cpp, Configuration: Release Win32 ------<br>6>------ Rebuild All started: Project: IpoptAmplSolver, Configuration: Release Win32 ------<br>
6>Deleting intermediate and output files for project 'IpoptAmplSolver', configuration 'Release|Win32'<br>5>Deleting intermediate and output files for project 'hs071_cpp', configuration 'Release|Win32'<br>
5>Compiling...<br>5>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release<br>5>hs071_nlp.cpp<br>6>Compiling...<br>6>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release<br>
6>AmplTNLP.cpp<br>5>hs071_main.cpp<br>6>..\..\..\src\Apps\AmplSolver\AmplTNLP.cpp(829) : warning C4297: 'Ipopt::get_num_opt' : function assumed not to throw an exception but does<br>6> The function is extern "C" and /EHc was specified<br>
6>..\..\..\src\Apps\AmplSolver\AmplTNLP.cpp(847) : warning C4297: 'Ipopt::get_int_opt' : function assumed not to throw an exception but does<br>6> The function is extern "C" and /EHc was specified<br>
6>..\..\..\src\Apps\AmplSolver\AmplTNLP.cpp(865) : warning C4297: 'Ipopt::get_str_opt' : function assumed not to throw an exception but does<br>6> The function is extern "C" and /EHc was specified<br>
6>..\..\..\src\Apps\AmplSolver\AmplTNLP.cpp(894) : warning C4297: 'Ipopt::get_haltonerror_opt' : function assumed not to throw an exception but does<br>6> The function is extern "C" and /EHc was specified<br>
5>Generating Code...<br>6>ampl_ipopt.cpp<br>5>Linking...<br>5>LINK : fatal error LNK1181: cannot open input file 'vcf2c.lib'<br>5>Build log was saved at "file://c:\msys\1.0\home\pony\Ipopt\Ipopt\MSVisualStudio\v9\hs071_cpp\Release\BuildLog.htm"<br>
5>hs071_cpp - 1 error(s), 1 warning(s)<br>6>Generating Code...<br>6>Linking...<br>6>LINK : fatal error LNK1181: cannot open input file 'vcf2c.lib'<br>6>Build log was saved at "file://c:\msys\1.0\home\pony\Ipopt\Ipopt\MSVisualStudio\v9\IpoptAmplSolver\Release\BuildLog.htm"<br>
6>IpoptAmplSolver - 1 error(s), 5 warning(s)<br>========== Rebuild All: 1 succeeded, 5 failed, 0 skipped ==========<br><br>-- <br>Thank you very much <br><br>Yours<br>Yudong Ma