[Coin-ipopt] installation problem in ipopt
Andreas Waechter
andreasw at watson.ibm.com
Thu Mar 15 16:54:11 EDT 2007
Hi Gaoqiang,
I don't have the compilers to reproduce the error message. It seems to me
that somehow the Fortran runtime libraries (for symbols
such as _for_write_seq_lis) are missing, and it seems that also the
symbols declared in the Ipopt library are not there.
As for the Fortran runtime libraries, I don't really know what the problem
might be (different options...?). Does anybody else reading this list have
an idea?
As for the missing Ipopt symbols (such as _IPCREATE), the problem could be
that the project for the hs071_f executable doesn't know that it should
like with the Ipopt library (dependencies set correctly?). Or, it could
be that you are using a different calling convention or name mangling in
your Fortran compiler than the default...(?) If the Fortran compiler is
set to expect a different name mangling (such as lower instead of upper
case), either change the compiler setting or you need to modify the
definition of the F77_FUNC and F77_FUNC_ macros defined in
BuildTools/headers/configall_system_msc.h
If that doesn't help, please submit a ticket at the Ipopt home back, and
include as much information as you can (compiler versions, which version
of the code you are using, whether you used the default project files or
if you modified them, if you are using non-standard compiler settings
etc).
Regards,
Andreas
On Thu, 15 Mar 2007, woaiquanzhongguo wrote:
> Dear Sir,
> I download the ipopt and third party components. I want to install
> the ipopt using Visual Studio on Windows, so I have installed Microsoft
> Visual Studio 2003 .NET , Microsoft Platform SDK and the Intel Visual
> Fortran Compier 9.0 firstly. I also set the compiling environment
> regarding to the the Readme file in the folder VisualStudio_dotNET. I
> found that there are seven projects in the folder VisualStudio_dotNET.
> According to the project dependencies in the Visual Studio, I think the
> build order of the seven projects should be hs071_f, ipopt,
> FortranLinAlg , ScalableProblems, hs071_cpp, hs071_c, CppExample, so I
> decide to build the hs071_f firstly. However, I encunter the following
> errors when building the hs071_f ( a Fortran Project):
> ------ Build started: Project: hs071_f, Configuration: Debug|Win32 ------ Deleting intermediate files and output files for project 'hs071_f', configuration 'Debug|Win32'.
> Compiling with Intel Fortran 9.1 C:\ProgramFiles\Intel\Compiler\Fortran\9.1\IA32\...
> ifort /nologo /Zi /Od /include:"G:\Programe_Files\Microsoft Platform SDK\Core SDK\include" /include:"..\..\..\src\Interfaces" /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /threads /c /extfor:f /Qvc7.1 /Qlocation,link,"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin" "C:\Program Files\Microsoft Visual Studio .NET 2003\Ipopt\Ipopt\Windows\VisualStudio_dotNET\hs071_f\hs071_f.f"
> Linking...
> Link /OUT:"Debug/hs071_f.exe" /INCREMENTAL /NOLOGO /LIBPATH:"G:\Programe_Files\Microsoft Platform SDK\Core SDK\Lib" /LIBPATH:"C:\Program Files\Intel\Compiler\Fortran\9.1\IA32\Lib" /LIBPATH:"C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib" /NODEFAULTLIB /DEBUG /PDB:"Debug/hs071_f.pdb" /SUBSYSTEM:CONSOLE /OPT:NOWIN98 "Debug/hs071_f.obj"
> Link: executing 'link'
> hs071_f.obj : error LNK2001: unresolved external symbol __fltused
> hs071_f.obj : error LNK2019: unresolved external symbol_for_set_reentrancy referenced in function _MAIN__
> hs071_f.obj : error LNK2019: unresolved external symbol _IPCREATE referenced in function _MAIN__
> hs071_f.obj : error LNK2019: unresolved external symbol _for_write_seq_lis referenced in function _MAIN__
> hs071_f.obj : error LNK2019: unresolved external symbol _for_stop_core referenced in function _MAIN__
> hs071_f.obj : error LNK2019: unresolved external symbol _IPOPENOUTPUTFILE referenced in function _MAIN__
> hs071_f.obj : error LNK2019: unresolved external symbol _IPADDSTROPTION referenced in function _MAIN__
> hs071_f.obj : error LNK2019: unresolved external symbol _IPADDINTOPTION referenced in function _MAIN__
> hs071_f.obj : error LNK2019: unresolved external symbol _IPADDNUMOPTION referenced in function _MAIN__
> hs071_f.obj : error LNK2019: unresolved external symbol _IPSOLVE referenced in function _MAIN__
> hs071_f.obj : error LNK2019: unresolved external symbol _for_write_seq_lis_xmit referenced in function _MAIN__
> hs071_f.obj : error LNK2019: unresolved external symbol _for_emit_diagnostic referenced in function _MAIN__
> hs071_f.obj : error LNK2019: unresolved external symbol _IPFREE referenced in function _MAIN__
> LINK : error LNK2001: unresolved external symbol _mainCRTStartup Debug/hs071_f.exe : fatal error LNK1120: 14 unresolved externals
> hs071_f build failed.
>
> I coulden't fix the problem ,Could you help me?
> Gaoqiang
More information about the Coin-ipopt
mailing list