coin-or / Bcp

Branch-Cut-Price Framework
Other
26 stars 13 forks source link

when Building Bcp on Windows #5

Closed svigerske closed 5 years ago

svigerske commented 5 years ago

Issue created by migration from Trac.

Original creator: efsilva@pobox.com

Original creation time: 2006-07-18 18:26:12

Assignee: somebody

Version:

Hello, I am trying to build Bcp on Windows (MSVC++), but now using the svn code just the way I downloaded it. I had a problem in the file BCPconfig.h, line 53.

/ a few things that exists under unix, but not under windows /

include

define gethostname(c, l) { DWORD cnlen = l; GetComputerName(c, &cnlen); }

include

My suggestion would be enclose those lines in a #ifndef, so that there is no need to change the code when working on Windows.

An addition, when I checked out the BCP project I got the file OsiCpxSolverInterface.hpp in folder E:\MVSProjects\COIN_svn\Bcp\Osi\src\OsiClp (OSi CLP folder), but I think this file was not suppose be there.

Thanks and congratulations for the nice work, Eduardo.

svigerske commented 5 years ago

Comment by ladanyi created at 2006-10-23 23:55:48

I don't see how you could get that problem. You get to that part of the header only if HAVE_CONFIG_H is not defined, and it is not defined only on windows (since on unix it gets defined by running configure). What is the error you get with the plain checked out code? I'll close the problem as invalid for now, but please, do reopen it if you still have problems. In that case let me know what version of the compiler are you using, and what is the error you get.

The second problem (OsiCpxSolverInterface.hpp in OsiClp) has been reported to the Osi maintainer and he will fix it.

Thanks, --Laci

svigerske commented 5 years ago

Comment by ladanyi created at 2006-10-23 23:55:48

Resolution: invalid