<html>
<head></head>
<body>
Yes, it works... after I downgraded gcc from 4.8.3 to 4.8.2
<br />
<br /> Thanks again.
<br />
<br /> Yao
<div class="iqtell-signature">
</div>
<hr />
<b>From:</b>
<a href="mailto:Tony Kelman (kelman@berkeley.edu)" style="cursor: pointer;">Tony Kelman (kelman@berkeley.edu)</a>
<br />
<b>Sent:</b> Tuesday, June 10, 2014 08:49 AM
<br />
<b>To:</b>
<a href="mailto:Yao Xie (xieyao04@gmail.com)">Yao Xie (xieyao04@gmail.com)</a>;
<a href="mailto:ipopt@list.coin-or.org" style="cursor: pointer;">ipopt@list.coin-or.org</a>
<br />
<b>Subject</b>: Re: [Ipopt] Missing random generator function using Cygwin 64
<div style="height:5px">
</div>
<div dir="ltr">
<div style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<div>
Ah, crap.
</div>
<div>
</div>
<div>
conftest.cc:75:22: error: ISO C++ forbids casting between pointer-to-function and pointer-to-object [-Werror=pedantic]
</div>
<div>
char *p = (char *) rand;
</div>
<div>
^
</div>
<div>
</div>
<div>
Apparently you’ve updated your GCC more recently than I have, and now in 4.8.3 this old-autotools method of checking for the existence of a function is an error, where it used to be a warning. I’m really surprised the grouping of a warning would be changed in a point release like that... the right solution is to update our autotools version, but that’s a big job that we haven’t put enough full-time work into yet. I’ll try to think if there’s a quick short-term fix for this, but in the meantime can you try reverting your GCC version to the previous release through Cygwin’s setup program?
</div>
<div>
</div>
<div>
-Tony
</div>
<div>
</div>
<div>
P.S: The attachment came through to me personally, but I guess not the mailing list. For future use you can try uploading log files somewhere like gist.github.com and send a link in your message.
</div>
<div>
</div>
<div>
</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>
</div>
<div style="BACKGROUND: #f5f5f5">
<div style="font-color: black">
<b>From:</b>
<a href="mailto:xieyao04@gmail.com" style="cursor: pointer;" title="xieyao04@gmail.com">Yao Xie</a>
</div>
<div>
<b>Sent:</b> Tuesday, June 10, 2014 5:48 AM
</div>
<div>
<b>To:</b>
<a href="mailto:kelman@berkeley.edu" style="cursor: pointer;" title="kelman@berkeley.edu">Tony Kelman</a> ;
<a href="mailto:ipopt@list.coin-or.org" style="cursor: pointer;" title="ipopt@list.coin-or.org">ipopt@list.coin-or.org</a>
</div>
<div>
<b>Subject:</b> RE: [Ipopt] Missing random generator function using Cygwin 64
</div>
</div>
</div>
<div>
</div>
</div>
<div style="FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline">
Hi Tony,
<br />
<br /> Thanks for your reply!
<br />
<br /> I've tried both 32 and 64 bit Cygwin. Both gave me the same error. I'm using IPOPT 3.11 stable version. The config.log is attached.
<br />
<br /> Thanks.
<br />
<br /> Yao
<br />
<br />
<hr />
<b>From:</b>
<a href="mailto:Tony Kelman (kelman@berkeley.edu)" style="CURSOR: pointer">Tony Kelman (kelman@berkeley.edu)</a>
<br />
<b>Sent:</b> Monday, June 9, 2014 11:33 PM
<br />
<b>To:</b>
<a href="mailto:Yao Xie (xieyao04@gmail.com)" style="CURSOR: pointer">Yao Xie (xieyao04@gmail.com)</a>;
<a href="mailto:ipopt@list.coin-or.org" style="CURSOR: pointer">ipopt@list.coin-or.org</a>
<br />
<b>Subject</b>: Re: [Ipopt] Missing random generator function using Cygwin 64
<div style="HEIGHT: 5px">
</div> Are you using 32 or 64 bit Cygwin? Which version of Ipopt are you trying to
<br /> compile? Can you post Ipopt/config.log?
<br />
<br />
<br /> -----Original Message-----
<br /> From: Yao Xie
<br /> Sent: Monday, June 09, 2014 5:58 PM
<br /> To:
<a href="mailto:ipopt@list.coin-or.org" style="CURSOR: pointer">ipopt@list.coin-or.org</a>
<br /> Subject: [Ipopt] Missing random generator function using Cygwin 64
<br />
<br /> Hi all,
<br />
<br /> I'm trying to install IPOPT on a Windows machine using Cygwin.
<br />
<br /> The configure is successful but got an error when running make:
<br />
<br /> ../../../../Ipopt/src/Common/IpUtils.cpp:178:5: error: #error "don't have
<br /> function for random number generator"
<br /> # error "don't have function for random number generator"
<br />
<br /> Can any one help on it?
<br />
<br /> Yao
<br />
<br />
<br />
<br /> _______________________________________________
<br /> Ipopt mailing list
<br />
<a href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</a>
<br />
<a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/mailman/listinfo/ipopt</a>
</div>
</div>
</div>
</body>
</html>