Sorry for the delay in responding. I have tried to build 64-bit binaries in MinGW a few different times and I have failed every time, though the details of how and why elude me now. My vague impression is that 64-bit MinGW compiler has always been a bit flaky. The closest I have come is by using the version of the MinGW compiler suite maintained by the group that develops &quot;R&quot;. They apparently have also run into issues with the 64-bit version of MinGW gcc (hence the fact that they have their version of the compiler that they maintain). In the past, I know that the R folks have successfully built versions of some COIN tools on the 64-bit MinGW platform using the RTools. I am willing to lend support if you want to give a try to building 64-bit binaries. If you can figure out the best option for a 64-bitt MinGW gcc suite, I will try building and debugging any problems.<br>

<br>Cheers,<br><br>Ted<br><br><div class="gmail_quote">On Thu, Jul 19, 2012 at 10:15 AM,  <span dir="ltr">&lt;<a href="mailto:acw@ascent.com" target="_blank">acw@ascent.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<font face="sans-serif">With your kind help and advice, we have
now succeeded in building our application under MinGW against the libraries
provided by the CoinBinary project, and running it on a 32-bit Windows
XP platform.  Using the SjLj-based compiler was key; after that there
were only minor difficulties in getting the compiler options correct to
meet the Java Native Interface&#39;s expectations.</font>
<br>
<br><font face="sans-serif">Our next step is to do the same thing
on a 64-bit Windows 7 platform.  Under </font><a href="http://www.coin-or.org/download/binary/CoinAll/" target="_blank"><font face="sans-serif">http://www.coin-or.org/download/binary/CoinAll/</font></a><font face="sans-serif">,
I had hoped to find something like COIN-OR-1.6.0-win64-mingw-gcc..., but
I can&#39;t see anything like that there.</font>
<br>
<br><font face="sans-serif">Have the CoinAll binaries been built
under MinGW on a 64-bit platform?  Or will we have to try to do it
from sources?  We would, of course, prefer to have binaries.</font>
<br>
<br>
<br>
<table width="100%">
<tbody><tr valign="top">
<td><font color="#5f5f5f" face="sans-serif" size="1">From:</font>
</td><td><font face="sans-serif" size="1">Ted Ralphs &lt;ted@Lehigh.EDU&gt;</font>
</td></tr><tr valign="top">
<td><font color="#5f5f5f" face="sans-serif" size="1">To:</font>
</td><td><font face="sans-serif" size="1"><a href="mailto:acw@ascent.com" target="_blank">acw@ascent.com</a></font>
</td></tr><tr>
<td valign="top"><font color="#5f5f5f" face="sans-serif" size="1">Cc:</font>
</td><td><font face="sans-serif" size="1"><a href="mailto:CoinBinary@list.coin-or.org" target="_blank">CoinBinary@list.coin-or.org</a></font>
</td></tr><tr valign="top">
<td><font color="#5f5f5f" face="sans-serif" size="1">Date:</font>
</td><td><font face="sans-serif" size="1">06/29/2012 04:09 PM</font>
</td></tr><tr valign="top">
<td><font color="#5f5f5f" face="sans-serif" size="1">Subject:</font>
</td><td><font face="sans-serif" size="1">Re: [CoinBinary] Missing library, building
example under MinGW</font></td></tr></tbody></table>
<br>
<hr noshade>
<br>
<br>
<br><font size="3">On the MinGW side, what you are running into is likely
an incompatibility with compiler versions. I built the MinGW libraries
with the only version of MinGW GCC that I was ever able to get to reliably
build the entire CoinAll suite. If I&#39;m not mistaken, the binaries for that
version are still available here:<br>
</font><font color="blue" size="3"><u><br>
</u></font><a href="http://sourceforge.net/projects/mingw/files/MinGW/Base/gcc/Version4/Previous%20Testing_%20gcc-4.2.1-sjlj%20-2/" target="_blank"><font color="blue" size="3"><u>http://sourceforge.net/projects/mingw/files/MinGW/Base/gcc/Version4/Previous%20Testing_%20gcc-4.2.1-sjlj%20-2/</u></font></a><font size="3"><br>


<br>
I guess that a lot of these problems will go away if you use this version
of the compiler. A second tip if you want to make sure you are building
with all the right compiler options and linking all the right libraries
is to start using pkg-config. It looks as though you can get a stand-alone
Windows version here:<br>
</font><font color="blue" size="3"><u><br>
</u></font><a href="http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/" target="_blank"><font color="blue" size="3"><u>http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/</u></font></a><font size="3"><br>


<br>
though I have never tried it. All of the projects have .pc files in &lt;install_dir&gt;/lib/pkgconfig.
These files contain all dependency information, as well as command-line
options for the compiler. You can easily parse these files by hand, but
the dependencies are built up recursively, so it takes a little work and
pkg-config will do that all for you. There is information on how to construct
Makefiles that leverage pkg-config support here:<br>
</font><font color="blue" size="3"><u><br>
</u></font><a href="https://projects.coin-or.org/BuildTools/wiki/user-examples#LinkingyourCodewithCOIN-ORLibraries" target="_blank"><font color="blue" size="3"><u>https://projects.coin-or.org/BuildTools/wiki/user-examples#LinkingyourCodewithCOIN-ORLibraries</u></font></a><font size="3"><br>


<br>
I am not certain that the Applications Template examples have Makefiles
that include support for pkg-config, but they might. Another alternative
is that there is a file <br>
<br>
&lt;install_dir&gt;/share/coin/doc/XXX/xxx_addlibs.txt<br>
<br>
that contains the output of running a pkg-config query for the command
line options to link to the library of project XXX. <br>
<br>
Having said all of that, I think you&#39;re better off in the long-run working
with source and building your own libraries if you know your way around
the command line (which you seem to). If you build from source, configure
will produce examples with custom built Makefiles that will work out of
the box and that you can easily modify to suit your needs. If you download
the CoinAll source distribution (or better yet, check it out from subversion),
you will see directories &lt;build_dir&gt;/XXX/examples with automatically
generated Makefiles that will build the corresponding examples from &lt;src_dir&gt;/XXX/examples.
I guess we should probably just install the example Makefiles and sources
along with the distribution...<br>
<br>
I have been playing around with getting CoinAll to build with the latest
and greatest version of the MinGW compilers, but if I recall, my last attempt
still failed. Most likely, it was due to problems with the Fortran compiler,
which may not concern you. If you just want Cbc, it should probably build
fine. If you run into problems with another project like Ipopt, then you
can set COIN_SKIP_PROJECTS to avoid that one or just get the Cbc distribution
separately. I am interested in being able to build with the latest MinGW
compilers myself, so if you are willing to give it a go, I will provide
as much support as I can.<br>
<br>
And yes, all of this information should be on a wiki somewhere and not
hidden on this low-traffic mailing list :). Hope this helps!<br>
<br>
Ted<br>
</font>
<br><font size="3">On Fri, Jun 29, 2012 at 2:24 PM, &lt;</font><a href="mailto:acw@ascent.com" target="_blank"><font color="blue" size="3"><u>acw@ascent.com</u></font></a><font size="3">&gt;
wrote:</font>
<br><font face="sans-serif" size="3">The Application Templates project looks
very helpful, especially if it is more up-to-date.  The canned applications
referred to in CoinEasy are not sufficient for our needs; for reasons that
aren&#39;t really germane here, we have to add some code and call the COIN
API, so we have to either build from source or compile against libraries.</font><font size="3">
<br>
</font><font face="sans-serif" size="3"><br>
I don&#39;t know if, given the existence of the Applications Template project,
it makes sense to continue to try to get the &quot;Osiexample&quot; build
to complete.  I can report the next step, though.  We changed
-lCoin to -lCoinUtils, and now at least the build does something.  What
it does is spit out almost 4000 lines of undefined symbol errors.  These
are of two kinds: there are the gxx_personality/SjLj errors, that indicate
a mismatch in exception-handling technology; I&#39;m not sure what to do about
those.  And then there are COIN-internal symbols, which probably indicate
that I have missing libraries in my LIB_FLAGS.  I&#39;m guessing that
new dependencies have appeared since this example was promulgated, but
I don&#39;t know how to figure out which libraries to add.  Perhaps the
answer to these questions is &quot;Use the Application Templates instead;
they are less moth-eaten.&quot;  Thoughts?</font><font size="3"> <br>
<br>
</font>
<table width="100%">
<tbody><tr valign="top">
<td width="13%"><font color="#5f5f5f" face="sans-serif" size="1">From:</font><font size="3">
</font>
</td><td width="86%"><font face="sans-serif" size="1">Ted Ralphs &lt;ted@Lehigh.EDU&gt;</font><font size="3">
</font>
</td></tr><tr valign="top">
<td><font color="#5f5f5f" face="sans-serif" size="1">To:</font><font size="3">
</font>
</td><td><a href="mailto:acw@ascent.com" target="_blank"><font color="blue" face="sans-serif" size="1"><u>acw@ascent.com</u></font></a><font size="3">
</font>
</td></tr><tr>
<td valign="top"><font color="#5f5f5f" face="sans-serif" size="1">Cc:</font><font size="3">
</font>
</td><td><a href="mailto:CoinBinary@list.coin-or.org" target="_blank"><font color="blue" face="sans-serif" size="1"><u>CoinBinary@list.coin-or.org</u></font></a><font size="3">
</font>
</td></tr><tr valign="top">
<td><font color="#5f5f5f" face="sans-serif" size="1">Date:</font><font size="3">
</font>
</td><td><font face="sans-serif" size="1">06/29/2012 01:03 PM</font><font size="3">
</font>
</td></tr><tr valign="top">
<td><font color="#5f5f5f" face="sans-serif" size="1">Subject:</font><font size="3">
</font>
</td><td><font face="sans-serif" size="1">Re: [CoinBinary] Missing library, building
example under MinGW</font></td></tr></tbody></table>
<br><font size="3"><br>
</font>
<hr noshade>
<br><font size="3"><br>
<br>
<br>
That seems to just be a mistake in the Makefile. It should be CoinUtils.
There is no libCoin. This zip file is quite old and there have been changes
that should make some of this easier, such as support for the use of pkg-config.
Alaos, we have not been very good in general at keeping all of this sort
of thing up to date and making it obvious and easy how to get started.
Too much to do and not enough manpower. <br>
<br>
A few years back, we started another project called CoinEasy, which was
supposed to be the single entry point for new users that explained how
to get started, but as with everything, it has been difficult to to keep
it up and we have not publicized it well. Nevertheless, it is probably
a better starting point than what you&#39;re working with.</font><font color="blue" size="3"><u><br>
<br>
</u></font><a href="https://projects.coin-or.org/CoinEasy" target="_blank"><font color="blue" size="3"><u>https://projects.coin-or.org/CoinEasy</u></font></a><font size="3"><br>
<br>
There is a project called &quot;application templates&quot; pointed to
on the CoinEasy page that has a more complete set of examples, Makefiles,
etc. </font><font color="blue" size="3"><u><br>
<br>
</u></font><a href="https://projects.coin-or.org/CoinBazaar/wiki/Projects/ApplicationTemplates" target="_blank"><font color="blue" size="3"><u>https://projects.coin-or.org/CoinBazaar/wiki/Projects/ApplicationTemplates</u></font></a><font size="3"><br>


<br>
Please feel free to post additional questions and we&#39;ll try to use that
as motivation to get some of this cleaned up :).<br>
<br>
Cheers,<br>
<br>
Ted<br>
<br>
On Fri, Jun 29, 2012 at 12:46 PM, &lt;</font><a href="mailto:acw@ascent.com" target="_blank"><font color="blue" size="3"><u>acw@ascent.com</u></font></a><font size="3">&gt;
wrote: <br>
 </font><font face="sans-serif" size="3">I downloaded and installed
the CoinAll binary distribution on my generic Windows XP desktop.  I
installed MinGW first, and chose the MinGW distribution on the download
page.</font><font size="3"> </font><font face="sans-serif" size="3"><br>
<br>
The command-line binaries seem to work fine.</font><font size="3"> </font><font face="sans-serif" size="3"><br>
<br>
But when I try to work the example given on the CoinBinary wiki project
page, I run into trouble.  In particular I am trying to build the
one called &quot;Osiexample&quot;.  I have MinGW g++, so I&#39;m typing
&quot;make -f Makefile.Osiexample&quot;.  (The NMakefile wants to
use the Visual Studio compiler.)</font><font size="3"> </font><font face="sans-serif" size="3"><br>
<br>
I had to adjust COIN_DIR and COIN_INC_DIR a little because the arrangement
of directories is not exactly the same as the example expects.  This
wasn&#39;t a problem.</font><font size="3"> </font><font face="sans-serif" size="3"><br>
<br>
My problem is that the build fails looking for the library libCoin.a.  I
looked in the directory win32-mingw-gcc4.2.1/lib, and it&#39;s just not there.
 CoinMP, yes.  CoinUtils, yes.  Just plain Coin, no.</font><font size="3">
</font><font face="sans-serif" size="3"><br>
<br>
Does anyone have a suggestion?  Thank you.</font><font size="3"> <br>
_______________________________________________<br>
CoinBinary mailing list</font><font color="blue" size="3"><u><br>
</u></font><a href="mailto:CoinBinary@list.coin-or.org" target="_blank"><font color="blue" size="3"><u>CoinBinary@list.coin-or.org</u></font></a><font color="blue" size="3"><u><br>
</u></font><a href="http://list.coin-or.org/mailman/listinfo/coinbinary" target="_blank"><font color="blue" size="3"><u>http://list.coin-or.org/mailman/listinfo/coinbinary</u></font></a><span class="HOEnZb"><font color="#888888"><font size="3"><br>


<br>
<br>
<br>
<br>
-- <br>
Dr. Ted Ralphs<br>
Associate Professor, Lehigh University</font><font color="blue" size="3"><u><br>
</u></font><a href="tel:%28610%29%20628-1280" target="_blank"><font color="blue" size="3"><u>(610)
628-1280</u></font></a><font size="3"><br>
ted &#39;at&#39; lehigh &#39;dot&#39; edu</font><font color="blue" size="3"><u><br>
</u></font><a href="http://coral.ie.lehigh.edu/%7Eted" target="_blank"><font color="blue" size="3"><u>coral.ie.lehigh.edu/~ted</u></font></a><font size="3"><br>
</font>
<br><font size="3"><br>
<br>
<br>
-- <br>
Dr. Ted Ralphs<br>
Associate Professor, Lehigh University</font><font color="blue" size="3"><u><br>
</u></font><a href="tel:%28610%29%20628-1280" target="_blank"><font color="blue" size="3"><u>(610)
628-1280</u></font></a><font size="3"><br>
ted &#39;at&#39; lehigh &#39;dot&#39; edu</font><font color="blue" size="3"><u><br>
</u></font><a href="http://coral.ie.lehigh.edu/%7Eted" target="_blank"><font color="blue" size="3"><u>coral.ie.lehigh.edu/~ted</u></font></a><font size="3"><br>
</font>
<br></font></span></blockquote></div><br><br clear="all"><br>-- <br>Dr. Ted Ralphs<br>Associate Professor, Lehigh University<br>(610) 628-1280<br>ted &#39;at&#39; lehigh &#39;dot&#39; edu<br><a href="http://coral.ie.lehigh.edu/%7Eted" target="_blank">coral.ie.lehigh.edu/~ted</a><br>

<br>