<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><span id="ms-rterangepaste-start"></span></p>
<p>Hi Matthias,</p>
<p><br>
</p>
<p>I tried extending "CPPFLAGS" parameter but I still get the same error. This is how I extended CPPFLAGS (I attached "make.cygwin.x86_64.gnu" above too) :</p>
<p><br>
</p>
<p></p>
<div>CPPFLAGS += -m64LDFLAGS  += -m64ifneq ($(OPT),opt-gccold)ifneq ($(OPT),dbgOFLAGS          +=      -mtune=native  # -malign-double -mcpu=pentium4 endif<br>
endif</div>
<div><br>
</div>
<div>ifeq ($(SHARED),true)<br>
LIBBUILDFLAGS += -D_WIN64 +=      -m64<br>
endif<br>
</div>
<br>
<p></p>
<div>When I tried using LEGACY=true I got the following error:</div>
<div><br>
</div>
<div>** Building ZIMPL library "/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a".<br>
make[2]: Entering directory '/scipoptsuite-3.2.1/zimpl-3.3.3'<br>
Makefile:135: make/make.cygwin.x86_64.gnu.opt: No such file or directory<br>
make[2]: *** No rule to make target 'make/make.cygwin.x86_64.gnu.opt'.  Stop.<br>
make[2]: Leaving directory '/scipoptsuite-3.2.1/zimpl-3.3.3'<br>
Makefile.doit:149: recipe for target '/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a' failed<br>
make[1]: *** [/scipoptsuite-3.2.1/zimpl-3.3.3/lib/libzimpl.cygwin.x86_64.gnu.opt.a] Error 2<br>
make[1]: Leaving directory '/scipoptsuite-3.2.1'<br>
Makefile:87: recipe for target 'scipbinary' failed<br>
make: *** [scipbinary] Error 2<br>
</div>
<div><br>
</div>
<div>Thanks for your help</div>
<div><br>
</div>
<div>Ahmed<br>
</div>
<span id="ms-rterangepaste-end"></span><br>
<p></p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><b>From:</b> Matthias Miltenberger <miltenberger@zib.de><br>
<b>Sent:</b> Friday, 8 April 2016 5:20 AM<br>
<b>To:</b> Ahmed Hammad; scip@zib.de<br>
<b>Subject:</b> Re: [SCIP] Error compiling SCIP using Cygwin</font>
<div> </div>
</div>
<div>Dear Ahmed,<br>
<br>
for some reason the flag "_WIN32" or "_WIN64" is not set when using cygwin. You can do that manually be adjusting the corresponding sub-makefiles "make.cygwin.x86.gnu" or "make.cygwin.x86_64.gnu" in "soplex-2.2.1/make/":<br>
Simply add " -D_WIN32" or " -D_WIN64", respectively,  in the first line, extending the "CPPFLAGS" parameter.<br>
<br>
Hope that helps!<br>
You might also try the make option "LEGACY=true", disabling the rational solving capabilities of SoPlex.<br>
<br>
cheers<br>
Matthias<br>
<br>
<div class="moz-cite-prefix">On 07.04.2016 12:08, Ahmed Hammad wrote:<br>
</div>
<blockquote type="cite">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hello all,</p>
<p><br>
</p>
<p>I have been trying to compile SCIP on windows using Cygwin. So I downloaded scipoptsuite-3.2.1. Once I untar it and try to built it using make I get the following error when it tries to build the Soplex library:</p>
<p><br>
</p>
<p>-> compiling obj/O.cygwin.x86_64.gnu.opt/lib/rational.o<br>
src/rational.cpp: In function ‘std::string soplex::rationalToString(const soplex                                                                                 ::Rational&, int)’:<br>
src/rational.cpp:1970:46: error: ‘fmemopen’ was not declared in this scope<br>
       tmpStream = fmemopen(tmpString, 63, "w");<br>
                                              ^<br>
Makefile:609: recipe for target 'obj/O.cygwin.x86_64.gnu.opt/lib/rational.o' fai                                                                                 led<br>
make[3]: *** [obj/O.cygwin.x86_64.gnu.opt/lib/rational.o] Error 1<br>
make[3]: Leaving directory '/scipoptsuite-3.2.1/soplex-2.2.1'<br>
Makefile:473: recipe for target 'makelibfile' failed<br>
make[2]: [makelibfile] Error 2 (ignored)<br>
make[3]: Entering directory '/scipoptsuite-3.2.1/soplex-2.2.1'<br>
-> compiling obj/O.cygwin.x86_64.gnu.opt/lib/rational.o<br>
src/rational.cpp: In function ‘std::string soplex::rationalToString(const soplex::Rational&, int)’:<br>
src/rational.cpp:1970:46: error: ‘fmemopen’ was not declared in this scope<br>
       tmpStream = fmemopen(tmpString, 63, "w");<br>
</p>
<p><br>
</p>
<p>How to I deal with this. Please help</p>
<p><br>
</p>
<p>Ahmed<br>
</p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre>_______________________________________________
Scip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Scip@zib.de">Scip@zib.de</a>
<a class="moz-txt-link-freetext" href="http://listserv.zib.de/mailman/listinfo/scip">http://listserv.zib.de/mailman/listinfo/scip</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
\__________________

Matthias Miltenberger
Zuse Institute Berlin
Takustr. 7, 14195 Berlin
<a class="moz-txt-link-abbreviated" href="http://www.zib.de/miltenberger">www.zib.de/miltenberger</a>
<a class="moz-txt-link-abbreviated" href="mailto:miltenberger@zib.de">miltenberger@zib.de</a>
+49 (30) 841 85-245</pre>
</div>
</div>
</div>
</body>
</html>