<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:m = 
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=Generator content="Microsoft Word 15 (filtered medium)">
<STYLE><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Microsoft Sans Serif";
        panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></STYLE>
</HEAD>
<BODY lang=EN-GB dir=ltr link=#0563c1 vLink=#954f72>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<DIV>Hi again.</DIV>
<DIV>&nbsp;</DIV>
<DIV>These errors are a consequence of our old autotools, the wrapper scripts 
that libtool makes when creating shared libraries on Windows cause some problems 
with the default flags. You should be able to work around it by adding 
“coin_skip_warn_cflags=yes coin_skip_warn_cxxflags=yes” to the configure line. 
You might also need “lt_cv_deplibs_check_method=pass_all” if you’re building for 
64-bit (looks like you aren’t though?).</DIV>
<DIV>&nbsp;</DIV>
<DIV>I may have forgotten a few dependency linking flags for HSL in my round of 
patches last year, if you’re trying to build with the coinhsl folder in the 
source tree. I’ll look at that now and try to fix it in stable/3.11.</DIV>
<DIV>&nbsp;</DIV>
<DIV>-Tony</DIV>
<DIV>&nbsp;</DIV>
<DIV 
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV style="FONT: 10pt tahoma">
<DIV>&nbsp;</DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A 
title=Guy.Charles@redbulltechnology.com 
href="mailto:Guy.Charles@redbulltechnology.com">Guy Charles</A> </DIV>
<DIV><B>Sent:</B> Tuesday, September 02, 2014 2:27 AM</DIV>
<DIV><B>To:</B> <A title=ipopt@list.coin-or.org 
href="mailto:ipopt@list.coin-or.org">ipopt@list.coin-or.org</A> </DIV>
<DIV><B>Subject:</B> [Ipopt] Issues building dlls with MinGW / 
MSys</DIV></DIV></DIV>
<DIV>&nbsp;</DIV></DIV>
<DIV 
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV class=WordSection1>
<P class=MsoNormal>Hi,<o:p></o:p></P>
<P class=MsoNormal><o:p></o:p>&nbsp;</P>
<P class=MsoNormal>Apologies for the multiple posts - they are related but 
different enough issues to be separate questions.<o:p></o:p></P>
<P class=MsoNormal><o:p></o:p>&nbsp;</P>
<P class=MsoNormal>I've searched around to find a solution to the errors that 
I'm getting in building ipopt dlls on windows, but no joy so far.&nbsp; 
Hopefully someone on here is more experienced and will be able to point me in 
the right direction?<o:p></o:p></P>
<P class=MsoNormal><o:p><FONT size=3></FONT></o:p>&nbsp;</P>
<P class=MsoNormal>Background:&nbsp; I am using the pyipopt python wrapper to 
ipopt, and would like to use more than the standard Mumps packages.&nbsp; I'm OK 
using the ipopt binaries from the coin download page (<A 
href="http://www.coin-or.org/Binaries/Ipopt/Ipopt-3.11.0-Win32-Win64-dll.7z">http://www.coin-or.org/Binaries/Ipopt/Ipopt-3.11.0-Win32-Win64-dll.7z</A>), 
but I have issues trying to use the HSL solver dll alongside ipopt.&nbsp; My 
previous post showed that error and was asking if they should work together - 
the answer is not, and that I need to use a different dll build, so I'm trying 
to build the ipopt dll from the latest source code (3.11.9).<o:p></o:p></P>
<P class=MsoNormal><o:p></o:p>&nbsp;</P>
<P class=MsoNormal>I'm working in MinGW / Msys - all should be the latest 
version (4.8.1-4), freshly installed.&nbsp; If I do not want to build dlls, the 
process works fine (i.e. follow the build documentation:&nbsp; configure;&nbsp; 
make; make test ; make install).&nbsp; This works with or without the HSL libs 
and with the coin BLAS or different versions of local BLAS routines.&nbsp; At 
the end I get all the static libs, ipopt.exe and the hs071 example.&nbsp; When I 
change to try to build shared libs I get a problem.&nbsp; I am 
running:<o:p></o:p></P>
<P class=MsoNormal><o:p></o:p>&nbsp;</P>
<P class=MsoNormal>cd build<o:p></o:p></P>
<P class=MsoNormal>make distclean (if I've been messing around with 
flags)<o:p></o:p></P>
<P class=MsoNormal>../configure --enable-shared 
--enable-dependency-linking<o:p></o:p></P>
<P class=MsoNormal>make<o:p></o:p></P>
<P class=MsoNormal><o:p></o:p>&nbsp;</P>
<P class=MsoNormal>It seems to go through building the third party dlls OK, but 
stalls on the ipopt build with the following error:<o:p></o:p></P>
<P class=MsoNormal><o:p></o:p>&nbsp;</P>
<P class=MsoNormal><SPAN style='FONT-FAMILY: "Arial","sans-serif"'>g++ -O3 -pipe 
-DNDEBUG -pedantic-errors -Wparentheses -Wreturn-type -Wcast-qual -Wall 
-Wpointer-arith -Wwrite-strings -W<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style='FONT-FAMILY: "Arial","sans-serif"'>conversion 
-Wno-unknown-pragmas -Wno-long-long -DIPOPT_BUILD -o .libs/ipopt.exe 
ampl_ipopt.o&nbsp; ./.libs/libipoptamplinterf<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style='FONT-FAMILY: "Arial","sans-serif"'>ace.dll.a 
/c/Ipopt-3.11.9/Ipopt-3.11.9/build/Ipopt/src/Interfaces/.libs/libipopt.dll.a 
../../Interfaces/.libs/libipopt.d<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style='FONT-FAMILY: "Arial","sans-serif"'>ll.a 
/c/Ipopt-3.11.9/Ipopt-3.11.9/build/ThirdParty/ASL/.libs/libcoinasl.dll.a 
/c/Ipopt-3.11.9/Ipopt-3.11.9/build/ThirdPa<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style='FONT-FAMILY: "Arial","sans-serif"'>rty/Mumps/.libs/libcoinmumps.dll.a 
-Lc:/mingw/bin/../lib/gcc/mingw32/4.8.1 -Lc:/mingw/bin/../lib/gcc 
-Lc:/mingw/bin/../l<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style='FONT-FAMILY: "Arial","sans-serif"'>ib/gcc/mingw32/4.8.1/../../../../mingw32/lib 
-Lc:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../.. 
/c/Ipopt-3.11.9/Ipopt-3.11<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style='FONT-FAMILY: "Arial","sans-serif"'>.9/build/ThirdParty/Metis/.libs/libcoinmetis.dll.a 
/c/Ipopt-3.11.9/Ipopt-3.11.9/build/ThirdParty/Lapack/.libs/libcoinlap<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style='FONT-FAMILY: "Arial","sans-serif"'>ack.dll.a 
/c/Ipopt-3.11.9/Ipopt-3.11.9/build/ThirdParty/Blas/.libs/libcoinblas.dll.a 
-lgfortran -lmingw32 -lmoldname -lm<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style='FONT-FAMILY: "Arial","sans-serif"'>ingwex 
-lmsvcrt -lquadmath -ladvapi32 -lshell32 -luser32 -lkernel32 
-L/c/Ipopt-3.11.9/Ipopt-3.11.9/build/lib<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style='FONT-FAMILY: "Arial","sans-serif"'>creating 
ipopt.exe<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style='FONT-FAMILY: "Arial","sans-serif"'>./.libs/lt-ipopt.c:72:24: error: 
anonymous variadic macros were introduced in C99 
[-Wvariadic-macros]<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style='FONT-FAMILY: "Arial","sans-serif"'># define 
DEBUG(format, ...)<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style='FONT-FAMILY: "Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
^<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style='FONT-FAMILY: "Arial","sans-serif"'>./.libs/lt-ipopt.c: In function 
'main':<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style='FONT-FAMILY: "Arial","sans-serif"'>./.libs/lt-ipopt.c:113:19: warning: to 
be safe all intermediate pointers in cast from 'char **' to 'const char **' 
must<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style='FONT-FAMILY: "Arial","sans-serif"'>be 'const' 
qualified [-Wcast-qual]<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style='FONT-FAMILY: "Arial","sans-serif"'>&nbsp;&nbsp; 
execv("/bin/sh",(char const **)newargz);<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style='FONT-FAMILY: "Arial","sans-serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
^<o:p></o:p></SPAN></P>
<P class=MsoNormal><o:p><FONT size=3></FONT></o:p>&nbsp;</P>
<P class=MsoNormal><o:p></o:p>&nbsp;</P>
<P class=MsoNormal>Has anyone else had this issue or can point me in the right 
direction?&nbsp; Do I need to go down the visual studio compiled route 
instead?&nbsp;&nbsp; Can I change the #define that it's pointing at to get 
around the error?<o:p></o:p></P>
<P class=MsoNormal><o:p></o:p>&nbsp;</P>
<P class=MsoNormal><o:p></o:p>&nbsp;</P>
<P class=MsoNormal>Thanks,<o:p></o:p></P>
<P class=MsoNormal>Guy<o:p></o:p></P>
<P class=MsoNormal><o:p></o:p>&nbsp;</P>
<P class=MsoNormal><o:p></o:p>&nbsp;</P>
<P class=MsoNormal><o:p></o:p>&nbsp;</P>
<P class=MsoNormal><o:p></o:p>&nbsp;</P>
<P class=MsoNormal><o:p></o:p>&nbsp;</P>
<P class=MsoNormal><B><SPAN 
style='FONT-SIZE: 10pt; FONT-FAMILY: "Microsoft Sans Serif","sans-serif"; COLOR: black; mso-fareast-language: en-gb'>GUY 
CHARLES<o:p></o:p></SPAN></B></P>
<P class=MsoNormal><SPAN 
style='FONT-SIZE: 9pt; FONT-FAMILY: "Microsoft Sans Serif","sans-serif"; COLOR: #616161; mso-fareast-language: en-gb'>Senior 
Simulation &amp; Modelling Engineer</SPAN><SPAN 
style="mso-fareast-language: en-gb"><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN 
style='FONT-SIZE: 9pt; FONT-FAMILY: "Microsoft Sans Serif","sans-serif"; COLOR: #616161; mso-fareast-language: en-gb'><o:p></o:p></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN 
style='FONT-SIZE: 9pt; FONT-FAMILY: "Microsoft Sans Serif","sans-serif"; COLOR: #616161; mso-fareast-language: en-gb'>Red 
Bull Technology Ltd.<BR>Building 1, Bradbourne Drive<BR>Tilbrook, Milton Keynes, 
UK<BR>MK7 8BJ<o:p></o:p></SPAN></P></DIV><BR 
clear=both>______________________________________________________________________<BR>This 
email has been scanned by the Symantec Email Security.cloud service.<BR>For more 
information please visit 
http://www.symanteccloud.com<BR>______________________________________________________________________<BR>
<P>
<HR>
_______________________________________________<BR>Ipopt mailing 
list<BR>Ipopt@list.coin-or.org<BR>http://list.coin-or.org/mailman/listinfo/ipopt<BR></DIV></DIV></DIV></BODY></HTML>