Hi Ted,<div><br></div><div>I&#39;ll give that a go, hopefully that works.</div><div><br></div><div>I actually tried VS2010 first - but hit a different problem altogether. I&#39;ll give it another go...</div><div><br></div>
<div>Downloading clean from the SVN, release/2.7.0, opening the /v10/ version, then building cbcExamplesSample2:</div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div>
<div>3&gt;------ Build started: Project: cbcExamplesSample2, Configuration: Debug Win32 ------</div></div><div><div>3&gt;  CbcLinked.cpp</div></div><div><div>3&gt;c:\coin\cbc\cbc\src\CbcLinked.hpp(29): error C2504: &#39;CbcOsiSolver&#39; : base class undefined</div>
</div></blockquote><div><br></div><div>Which I fixed by adding CBC_BUILD to the preprocessor directives.</div><div>But then it seems to almost get to the end, before saying:</div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div><div>7&gt;  Generating Code...</div></div><div><div>7&gt;LINK : fatal error LNK1181: cannot open input file &#39;libCoinUtils.lib&#39;</div></div></blockquote><div><br></div><div>Which I fixed by making &quot;MSVisualStudio\v10\Win32\Debug&quot; an additional library directory. It then runs fine.</div>
<div><br></div><div>Trying to build the cbc project:</div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div>4&gt;------ Build started: Project: cbc, Configuration: Debug Win32 ------</div>
</div><div><div>4&gt;  CoinSolve.cpp</div></div><div><div>4&gt;LINK : fatal error LNK1181: cannot open input file &#39;libCgl.lib&#39;</div></div></blockquote><div><br></div><div>Which I again fixed by adding that directory. It then builds.</div>
<div><br></div><div>I did some more digging around in the options, and I think the issue is this:</div><div>Some projects output to $(SolutionDir)$(Platform)\$(Configuration)\</div><div>Other projects output to $(SolutionDir)$(Configuration)\</div>
<div><br>If I standardise to the $(Platform)\ version, it all works fine (for cbc, still need to add CBC_BUILD to get cbcExamplesSample2 working).</div><div><br></div><div>Are you able to use TortoiseSVN-generated patches? Or do you just want to fix it yourself?</div>
<div><br></div><div>Cheers,</div><div>Iain</div><div><br></div><div><br><div class="gmail_quote">On 21 July 2011 16:41, Ted Ralphs <span dir="ltr">&lt;<a href="mailto:ted@lehigh.edu">ted@lehigh.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Iain,<br>
<br>
The 2008 project files are surely out of date---I just spent several<br>
days working out the bugs in the new 2010 files and those should work<br>
fine. If possible, I would suggest you just download MSVC++ Express<br>
2010 and use that, as I&#39;m not too keen on more wrestling with MSVC++<br>
anytime soon :). If you can&#39;t do that, I can tell you that most of the<br>
errors you are seeing will be corrected if you add<br>
<br>
XXX_BUILD<br>
<br>
to the list of preprocessor symbols defined, where &quot;XXX&quot; is the<br>
project acronym (in all caps). This is necessary under the new system<br>
we have adopted for configuration header files, which is used in the<br>
latest releases of COIN projects. Even for the projects that are not<br>
currently broken, you should add that symbol, as they may otherwise<br>
break in future releases. That should fix most things. If there are<br>
still errors, post another message. Also, if you want to contribute<br>
the repaired files, that would be great.<br>
<br>
Cheers,<br>
<br>
Ted<br>
<div><div></div><div class="h5"><br>
On Wed, Jul 20, 2011 at 11:59 PM, Iain Dunning &lt;<a href="mailto:iaindunning@gmail.com">iaindunning@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt; I&#39;m having a lot of trouble trying to build CBC with Visual Studio 2008.<br>
&gt; This happens in 2.7 stable, 2.7.0 release, and trunk.<br>
&gt; What I want to do is build &quot;cbc.exe&quot;, but at the moment I&#39;m just trying to<br>
&gt; build the default project, cbcExamplesSample2<br>
&gt;<br>
&gt; The errors I hit are many and varied...<br>
&gt; I suspect some are pre-processor related, others seem more problematic.<br>
&gt; 1. Project libOsi - all fine<br>
&gt; 2. Project libClp<br>
&gt; c:\coin\cbc\clp\src\clphelperfunctions.hpp(16) : fatal error C1189: #error :<br>
&gt;  &quot;don&#39;t have header file for math&quot;<br>
&gt; Happens a few times.<br>
&gt; 3. Project libCoinUtils<br>
&gt; c:\coin\cbc\clp\src\clphelperfunctions.hpp(16) : fatal error C1189: #error :<br>
&gt;  &quot;don&#39;t have header file for math&quot;<br>
&gt; 4. Project libOsiClp - all fine<br>
&gt; 5. Project libCbcSolver<br>
&gt; ..\..\..\src\unitTestClp.cpp(584) : error C2039: &#39;fastNodeDepth&#39; : is not a<br>
&gt; member of &#39;CbcModel&#39;<br>
&gt;         c:\coin\cbc\cbc\src\CbcModel.hpp(99) : see declaration of &#39;CbcModel&#39;<br>
&gt; ..\..\..\src\unitTestClp.cpp(585) : error C2039: &#39;setFastNodeDepth&#39; : is not<br>
&gt; a member of &#39;CbcModel&#39;<br>
&gt;         c:\coin\cbc\cbc\src\CbcModel.hpp(99) : see declaration of &#39;CbcModel&#39;<br>
&gt; c:\coin\cbc\cbc\src\CbcLinked.hpp(29) : error C2504: &#39;CbcOsiSolver&#39; : base<br>
&gt; class undefined<br>
&gt; Then a lot of errors follow on from this.<br>
&gt; 7. Project libCgl<br>
&gt; c:\coin\cbc\cbc\src\cbcheuristic.cpp(539) : error C2039:<br>
&gt; &#39;continuousPriority&#39; : is not a member of &#39;CbcModel<br>
&gt; c:\coin\cbc\cbc\src\cbcheuristic.cpp(906) : error C2039: &#39;setFastNodeDepth&#39;<br>
&gt; : is not a member of &#39;CbcModel&#39;<br>
&gt; c:\coin\cbc\cbc\src\cbcheuristic.cpp(1163) : error C2039: &#39;setFastNodeDepth&#39;<br>
&gt; : is not a member of &#39;CbcModel&#39;<br>
&gt; c:\coin\cbc\cbc\src\cbcheuristic.cpp(1164) : error C2039: &#39;fastNodeDepth&#39; :<br>
&gt; is not a member of &#39;CbcModel&#39;<br>
&gt; There seems to be issues in the &quot;test&quot; projects, but I don&#39;t need those.<br>
&gt; Any idea about how I fix these issues?<br>
&gt; Cheers,<br>
&gt; Iain<br>
</div></div>&gt; _______________________________________________<br>
&gt; Cbc mailing list<br>
&gt; <a href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><br>
&gt; <a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a><br>
&gt;<br>
&gt;<br>
<font color="#888888"><br>
<br>
<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/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br><font face="&#39;courier new&#39;, monospace">Iain Dunning</font><br><font face="&#39;courier new&#39;, monospace">Email:    <a href="mailto:iaindunning@gmail.com" target="_blank">iaindunning@gmail.com</a><br>
Web:      <a href="http://www.iaindunning.com/" target="_blank">www.iaindunning.com</a><br></font><div><font face="&#39;courier new&#39;, monospace">LinkedIn: <span style="font-size:13px;line-height:15px;background-color:rgb(255, 255, 255)"><a href="http://nz.linkedin.com/in/iaindunning" target="_blank">nz.linkedin.com/in/iaindunning</a></span></font></div>
<br>
</div>