[Ipopt-tickets] [Ipopt] #249: Question about compiling Ipopt under Cygwin environment?

Ipopt coin-trac at coin-or.org
Sat Apr 30 07:17:59 EDT 2016


#249: Question about compiling Ipopt under Cygwin environment?
----------------------------+------------------------
  Reporter:  kuoshih        |      Owner:  ipopt-team
      Type:  clarification  |     Status:  new
  Priority:  normal         |  Component:  Ipopt
   Version:  3.11           |   Severity:  normal
Resolution:                 |   Keywords:
----------------------------+------------------------
Description changed by stefan:

Old description:

> I am compling Ipopt to generate libipopt.lib file for
> Visual studio C++ 2010.
> I follow the instruction of "•Installation with Cygwin using the MSVC++
> compiler"
> http://www.coin-or.org/Ipopt/documentation/node15.html
>
> The command of "cl" and "ifort" works in Cygwin terminal.
> After "./configure -enable-doscompile=msvc",
> I got "Main Ipopt configuration successful."
> After "make", I got the following error message.
>
> =========================================
> make[3]: Entering directory '/home/Ipopt-3.11.9/Ipopt/src/LinAlg'
> source='IpBlas.cpp' object='IpBlas.lo' libtool=yes \
> DEPDIR=.deps depmode=none /bin/sh ../../depcomp \
> /bin/sh ../../../libtool --tag=CXX --mode=compile cl -DHAVE_CONFIG_H -I.
> -I`cygpath -w .` -I../../src/Common  -I`cygpath -w ./../Common`   -MT -O2
> -nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE -DNDEBUG
> -DIPOPT_BUILD -c -o IpBlas.lo IpBlas.cpp
>  cl -DHAVE_CONFIG_H -I. -I. -I../../src/Common
> -ID:\\cygwin\\home\\Ipopt-3.11.9\\Ipopt\\src\\Common -MT -O2 -nologo
> -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE -DNDEBUG -DIPOPT_BUILD -c
> IpBlas.cpp
> IpBlas.cpp
> IpBlas.cpp(18) : error C2065: 'ddot' : undeclared identifier
> IpBlas.cpp(18) : error C2065: 'DDOT' : undeclared identifier
> IpBlas.cpp(18) : error C4430: missing type specifier - int assumed. Note:
> C++ does not support default-int
> IpBlas.cpp(18) : error C2078: too many initializers
> IpBlas.cpp(18) : error C2143: syntax error : missing ';' before '('
> IpBlas.cpp(18) : error C2226: syntax error : unexpected type 'ipfint'
> IpBlas.cpp(19) : error C2059: syntax error : ')'
> IpBlas.cpp(21) : error C2065: 'dnrm2' : undeclared identifier
> IpBlas.cpp(21) : error C2065: 'DNRM2' : undeclared identifier
> IpBlas.cpp(21) : error C4430: missing type specifier - int assumed. Note:
> C++ does not support default-int
> ...
> ...
> ...
> IpBlas.cpp(139) : error C2065: 'DAXPY' : undeclared identifier
> IpBlas.cpp(139) : error C3861: 'F77_FUNC': identifier not found
> IpBlas.cpp(139) : fatal error C1003: error count exceeds 100; stopping
> compilation
> Makefile:522: recipe for target 'IpBlas.lo' failed
> make[3]: *** [IpBlas.lo] Error 1
> make[3]: Leaving directory '/home/Ipopt-3.11.9/Ipopt/src/LinAlg'
> Makefile:560: recipe for target 'all-recursive' failed
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory '/home/Ipopt-3.11.9/Ipopt/src/LinAlg'
> Makefile:666: recipe for target 'all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory '/home/Ipopt-3.11.9/Ipopt'
> Makefile:316: recipe for target 'all-recursive' failed
> make: *** [all-recursive] Error 1
> ========================================
>
> Does anyone have the same error? Please help me to figure out it.
> Thank you!
>
> PS:If I use "Installation with Cygwin using GNU compilers ",
> the "make install" and "make test" are successful.

New description:

 I am compling Ipopt to generate libipopt.lib file for
 Visual studio C++ 2010.
 I follow the instruction of "•Installation with Cygwin using the MSVC++
 compiler"
 http://www.coin-or.org/Ipopt/documentation/node15.html

 The command of "cl" and "ifort" works in Cygwin terminal.
 After "./configure -enable-doscompile=msvc",
 I got "Main Ipopt configuration successful."
 After "make", I got the following error message.
 {{{
 =========================================
 make[3]: Entering directory '/home/Ipopt-3.11.9/Ipopt/src/LinAlg'
 source='IpBlas.cpp' object='IpBlas.lo' libtool=yes \
 DEPDIR=.deps depmode=none /bin/sh ../../depcomp \
 /bin/sh ../../../libtool --tag=CXX --mode=compile cl -DHAVE_CONFIG_H -I.
 -I`cygpath -w .` -I../../src/Common  -I`cygpath -w ./../Common`   -MT -O2
 -nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE -DNDEBUG
 -DIPOPT_BUILD -c -o IpBlas.lo IpBlas.cpp
  cl -DHAVE_CONFIG_H -I. -I. -I../../src/Common
 -ID:\\cygwin\\home\\Ipopt-3.11.9\\Ipopt\\src\\Common -MT -O2 -nologo -EHsc
 -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE -DNDEBUG -DIPOPT_BUILD -c
 IpBlas.cpp
 IpBlas.cpp
 IpBlas.cpp(18) : error C2065: 'ddot' : undeclared identifier
 IpBlas.cpp(18) : error C2065: 'DDOT' : undeclared identifier
 IpBlas.cpp(18) : error C4430: missing type specifier - int assumed. Note:
 C++ does not support default-int
 IpBlas.cpp(18) : error C2078: too many initializers
 IpBlas.cpp(18) : error C2143: syntax error : missing ';' before '('
 IpBlas.cpp(18) : error C2226: syntax error : unexpected type 'ipfint'
 IpBlas.cpp(19) : error C2059: syntax error : ')'
 IpBlas.cpp(21) : error C2065: 'dnrm2' : undeclared identifier
 IpBlas.cpp(21) : error C2065: 'DNRM2' : undeclared identifier
 IpBlas.cpp(21) : error C4430: missing type specifier - int assumed. Note:
 C++ does not support default-int
 ...
 ...
 ...
 IpBlas.cpp(139) : error C2065: 'DAXPY' : undeclared identifier
 IpBlas.cpp(139) : error C3861: 'F77_FUNC': identifier not found
 IpBlas.cpp(139) : fatal error C1003: error count exceeds 100; stopping
 compilation
 Makefile:522: recipe for target 'IpBlas.lo' failed
 make[3]: *** [IpBlas.lo] Error 1
 make[3]: Leaving directory '/home/Ipopt-3.11.9/Ipopt/src/LinAlg'
 Makefile:560: recipe for target 'all-recursive' failed
 make[2]: *** [all-recursive] Error 1
 make[2]: Leaving directory '/home/Ipopt-3.11.9/Ipopt/src/LinAlg'
 Makefile:666: recipe for target 'all-recursive' failed
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory '/home/Ipopt-3.11.9/Ipopt'
 Makefile:316: recipe for target 'all-recursive' failed
 make: *** [all-recursive] Error 1
 ========================================
 }}}
 Does anyone have the same error? Please help me to figure out it.
 Thank you!

 PS:If I use "Installation with Cygwin using GNU compilers ",
 the "make install" and "make test" are successful.

--

--
Ticket URL: <https://projects.coin-or.org/Ipopt/ticket/249#comment:2>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.



More information about the Ipopt-tickets mailing list