Hi Ted,<div><br></div><div>Checked out Stable 2.7, works great, built it with problems.</div><div>I sympathise about the configuration problems - I've hit that one a few times myself!</div><div><br></div><div>Thanks for your help.</div>
<div><br></div><div>Cheers,</div><div>Iain<br><br><div class="gmail_quote">On 22 July 2011 07:43, Ted Ralphs <span dir="ltr"><<a href="mailto:ted@lehigh.edu">ted@lehigh.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
OK, I just went through and re-updated everything. It *should* all be<br>
fixed now. One of the problems is that we are now supporting 64-bit<br>
configurations, so there are four total build types and Microsoft<br>
makes it so very easy to make changes in one configuration and not in<br>
others by accident. It sometimes does not even save all of your<br>
changes when you make changes to multiple configurations unless you<br>
hit the "Apply" button. This seems like an obvious bug. What a<br>
headache! Can you get a fresh checkout of 2.7 and see if it all works<br>
now out of the box? Then I will make a new release.<br>
<br>
Cheers,<br>
<font color="#888888"><br>
Ted<br>
</font><div><div></div><div class="h5"><br>
On Thu, Jul 21, 2011 at 12:21 PM, Ted Ralphs <<a href="mailto:ted@lehigh.edu">ted@lehigh.edu</a>> wrote:<br>
> Hi Iain,<br>
><br>
> Sorry about that! These are exactly the kinds of changes that I had to<br>
> make in dozens of MSVC++ 2010 files to get them working again, but I<br>
> must have missed some. Let me just try to make the changes and if it<br>
> looks easier to get the patch from you, I'll let you know. Actually,<br>
> if it's not too much trouble, you could try just sending the project<br>
> and solution files you modified in e-mail off-line. I will then make a<br>
> new release of Cbc with the new files.<br>
><br>
> Cheers,<br>
><br>
> Ted<br>
><br>
> On Thu, Jul 21, 2011 at 3:47 AM, Iain Dunning <<a href="mailto:iaindunning@gmail.com">iaindunning@gmail.com</a>> wrote:<br>
>> Hi Ted,<br>
>> I'll give that a go, hopefully that works.<br>
>> I actually tried VS2010 first - but hit a different problem altogether. I'll<br>
>> give it another go...<br>
>> Downloading clean from the SVN, release/2.7.0, opening the /v10/ version,<br>
>> then building cbcExamplesSample2:<br>
>><br>
>> 3>------ Build started: Project: cbcExamplesSample2, Configuration: Debug<br>
>> Win32 ------<br>
>> 3> CbcLinked.cpp<br>
>> 3>c:\coin\cbc\cbc\src\CbcLinked.hpp(29): error C2504: 'CbcOsiSolver' : base<br>
>> class undefined<br>
>><br>
>> Which I fixed by adding CBC_BUILD to the preprocessor directives.<br>
>> But then it seems to almost get to the end, before saying:<br>
>><br>
>> 7> Generating Code...<br>
>> 7>LINK : fatal error LNK1181: cannot open input file 'libCoinUtils.lib'<br>
>><br>
>> Which I fixed by making "MSVisualStudio\v10\Win32\Debug" an additional<br>
>> library directory. It then runs fine.<br>
>> Trying to build the cbc project:<br>
>><br>
>> 4>------ Build started: Project: cbc, Configuration: Debug Win32 ------<br>
>> 4> CoinSolve.cpp<br>
>> 4>LINK : fatal error LNK1181: cannot open input file 'libCgl.lib'<br>
>><br>
>> Which I again fixed by adding that directory. It then builds.<br>
>> I did some more digging around in the options, and I think the issue is<br>
>> this:<br>
>> Some projects output to $(SolutionDir)$(Platform)\$(Configuration)\<br>
>> Other projects output to $(SolutionDir)$(Configuration)\<br>
>> If I standardise to the $(Platform)\ version, it all works fine (for cbc,<br>
>> still need to add CBC_BUILD to get cbcExamplesSample2 working).<br>
>> Are you able to use TortoiseSVN-generated patches? Or do you just want to<br>
>> fix it yourself?<br>
>> Cheers,<br>
>> Iain<br>
>><br>
>> On 21 July 2011 16:41, Ted Ralphs <<a href="mailto:ted@lehigh.edu">ted@lehigh.edu</a>> wrote:<br>
>>><br>
>>> 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'm not too keen on more wrestling with MSVC++<br>
>>> anytime soon :). If you can'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 "XXX" 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>
>>><br>
>>> On Wed, Jul 20, 2011 at 11:59 PM, Iain Dunning <<a href="mailto:iaindunning@gmail.com">iaindunning@gmail.com</a>><br>
>>> wrote:<br>
>>> > Hi,<br>
>>> > I'm having a lot of trouble trying to build CBC with Visual Studio 2008.<br>
>>> > This happens in 2.7 stable, 2.7.0 release, and trunk.<br>
>>> > What I want to do is build "cbc.exe", but at the moment I'm just trying<br>
>>> > to<br>
>>> > build the default project, cbcExamplesSample2<br>
>>> ><br>
>>> > The errors I hit are many and varied...<br>
>>> > I suspect some are pre-processor related, others seem more problematic.<br>
>>> > 1. Project libOsi - all fine<br>
>>> > 2. Project libClp<br>
>>> > c:\coin\cbc\clp\src\clphelperfunctions.hpp(16) : fatal error C1189:<br>
>>> > #error :<br>
>>> > "don't have header file for math"<br>
>>> > Happens a few times.<br>
>>> > 3. Project libCoinUtils<br>
>>> > c:\coin\cbc\clp\src\clphelperfunctions.hpp(16) : fatal error C1189:<br>
>>> > #error :<br>
>>> > "don't have header file for math"<br>
>>> > 4. Project libOsiClp - all fine<br>
>>> > 5. Project libCbcSolver<br>
>>> > ..\..\..\src\unitTestClp.cpp(584) : error C2039: 'fastNodeDepth' : is<br>
>>> > not a<br>
>>> > member of 'CbcModel'<br>
>>> > c:\coin\cbc\cbc\src\CbcModel.hpp(99) : see declaration of<br>
>>> > 'CbcModel'<br>
>>> > ..\..\..\src\unitTestClp.cpp(585) : error C2039: 'setFastNodeDepth' : is<br>
>>> > not<br>
>>> > a member of 'CbcModel'<br>
>>> > c:\coin\cbc\cbc\src\CbcModel.hpp(99) : see declaration of<br>
>>> > 'CbcModel'<br>
>>> > c:\coin\cbc\cbc\src\CbcLinked.hpp(29) : error C2504: 'CbcOsiSolver' :<br>
>>> > base<br>
>>> > class undefined<br>
>>> > Then a lot of errors follow on from this.<br>
>>> > 7. Project libCgl<br>
>>> > c:\coin\cbc\cbc\src\cbcheuristic.cpp(539) : error C2039:<br>
>>> > 'continuousPriority' : is not a member of 'CbcModel<br>
>>> > c:\coin\cbc\cbc\src\cbcheuristic.cpp(906) : error C2039:<br>
>>> > 'setFastNodeDepth'<br>
>>> > : is not a member of 'CbcModel'<br>
>>> > c:\coin\cbc\cbc\src\cbcheuristic.cpp(1163) : error C2039:<br>
>>> > 'setFastNodeDepth'<br>
>>> > : is not a member of 'CbcModel'<br>
>>> > c:\coin\cbc\cbc\src\cbcheuristic.cpp(1164) : error C2039:<br>
>>> > 'fastNodeDepth' :<br>
>>> > is not a member of 'CbcModel'<br>
>>> > There seems to be issues in the "test" projects, but I don't need those.<br>
>>> > Any idea about how I fix these issues?<br>
>>> > Cheers,<br>
>>> > Iain<br>
>>> > _______________________________________________<br>
>>> > Cbc mailing list<br>
>>> > <a href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><br>
>>> > <a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a><br>
>>> ><br>
>>> ><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Dr. Ted Ralphs<br>
>>> Associate Professor, Lehigh University<br>
>>> (610) 628-1280<br>
>>> ted 'at' lehigh 'dot' edu<br>
>>> <a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br>
>><br>
>><br>
>><br>
>> --<br>
>> Iain Dunning<br>
>> Email: <a href="mailto:iaindunning@gmail.com">iaindunning@gmail.com</a><br>
>> Web: <a href="http://www.iaindunning.com" target="_blank">www.iaindunning.com</a><br>
>> LinkedIn: <a href="http://nz.linkedin.com/in/iaindunning" target="_blank">nz.linkedin.com/in/iaindunning</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> Dr. Ted Ralphs<br>
> Associate Professor, Lehigh University<br>
> (610) 628-1280<br>
> ted 'at' lehigh 'dot' edu<br>
> <a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br>
><br>
<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">Dr. Ted Ralphs<br>
Associate Professor, Lehigh University<br>
(610) 628-1280<br>
ted 'at' lehigh 'dot' edu<br>
<a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><font face="'courier new', monospace">Iain Dunning</font><br><font face="'courier new', 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="'courier new', 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>