[Ipopt] Help

Andreas Waechter andreasw at watson.ibm.com
Fri Dec 11 11:06:30 EST 2009


Hi Aritra,

I'm not using MSVS much at all, maybe someone else can give you a hint how 
to fix your issue.

However, you might want to know that there are Windows binaries for Ipopt 
available, including a DLL.  Maybe this is already good enough for your 
purposes and you don't need to go through the hassle of compiling Ipopt 
yourself.  The webpage with the binaries is

http://www.coin-or.org/download/binary/Ipopt/

Regards,

Andreas

On Thu, 10 Dec 2009, Aritra Nath wrote:

> Hi,
>
> I am trying to compile IPOPT on windows with Visual Studio 2008 Professional
> edition.
>
> I am encountering a whole lot of errors but from what I can make out it's to
> do with the use of *'ipfint' *data type. I am not sure why this is happening
> as I have included the definition in the IpoptConfig.h. I am using the f2c
> compiler also using the vcf2c library. Is there any other
> thing(file/libraries/definitions) that need to be included in the project.
>
>
> I am pasting a part of the error log here:
>
> /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> 1>------ Build started: Project: libIpopt, Configuration: Release Win32
> ------
> 1>Compiling...
> 1>IpPiecewisePenalty.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146:
> syntax error : missing ';' before identifier 'ipfint'
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>IpCGSearchDirCalc.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146:
> syntax error : missing ';' before identifier 'ipfint'
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>IpCGPerturbationHandler.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146:
> syntax error : missing ';' before identifier 'ipfint'
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>IpCGPenaltyRegOp.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146:
> syntax error : missing ';' before identifier 'ipfint'
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>IpCGPenaltyLSAcceptor.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146:
> syntax error : missing ';' before identifier 'ipfint'
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>IpCGPenaltyData.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146:
> syntax error : missing ';' before identifier 'ipfint'
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>IpCGPenaltyCq.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146:
> syntax error : missing ';' before identifier 'ipfint'
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>IpTNLPAdapter.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146:
> syntax error : missing ';' before identifier 'ipfint'
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>c:\ipopt\ipopt\CoinIpopt\Ipopt\src\LinAlg\TMatrices\IpSymTMatrix.hpp(100)
> : error C2061: syntax error : identifier 'ipfint'
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2468) : error C2065:
> 'jac_c_iRow' : undeclared identifier
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2468) : error C2061: syntax
> error : identifier 'ipfint'
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2469) : error C2065:
> 'jac_c_jCol' : undeclared identifier
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2469) : error C2061: syntax
> error : identifier 'ipfint'
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2513) : error C2541: 'delete' :
> cannot delete objects that are not pointers
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2514) : error C2541: 'delete' :
> cannot delete objects that are not pointers
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2531) : error C2541: 'delete' :
> cannot delete objects that are not pointers
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2532) : error C2541: 'delete' :
> cannot delete objects that are not pointers
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2540) : error C2541: 'delete' :
> cannot delete objects that are not pointers
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2541) : error C2541: 'delete' :
> cannot delete objects that are not pointers
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2577) : error C2541: 'delete' :
> cannot delete objects that are not pointers
> 1>..\..\..\src\Interfaces\IpTNLPAdapter.cpp(2578) : error C2541: 'delete' :
> cannot delete objects that are not pointers
> 1>IpStdInterfaceTNLP.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146:
> syntax error : missing ';' before identifier 'ipfint'
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>IpStdCInterface.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146:
> syntax error : missing ';' before identifier 'ipfint'
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>IpSolveStatistics.cpp
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C2146:
> syntax error : missing ';' before identifier 'ipfint'
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> 1>c:\ipopt\ipopt\coinipopt\ipopt\src\common\IpoptConfig.h(96) : error C4430:
> missing type specifier - int assumed. Note: C++ does not support default-int
> /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
>
> Regards,
> Aritra Nath
>



More information about the Ipopt mailing list