Open GoogleCodeExporter opened 8 years ago
I have compiled and made cspsol.exe using MS Visual Studio 10.0. The version
1.02 didn+t worked for me: the compiler reported an error in bb_node.cpp in
line 58 {ctor}. But I more liked the philosophy of cspol-minicut, so I tried to
build up, et voila - it built without problems.
I have added w32 folder in directory of cspsol dir, the version of GLPK is
4.44, also built with MS VS 10.0 .
Original comment by marko.bu...@gmail.com
on 21 Aug 2010 at 6:08
Attachments:
Thanks. I will have a look as soon as I get a chance.
Original comment by vijay.pa...@gmail.com
on 22 Aug 2010 at 1:16
Hi, It's me again,
Actualy I made a mistake, I have built succesifuly the version 0.7 and neither
1.02 or cspsol-minicut, the MS compiler reports a syntax error in line 58 of
bb_node.cpp:
error C2061: syntax error identifier '{ctor}'
ctor stands for CONSTRUCTOR as I've seen on net. Does anybody have a solution
to set the MS compiler corretly?
Original comment by marko.bu...@gmail.com
on 22 Aug 2010 at 4:11
Hi, again.
I can build versions up to 0.9, after that bb_node.cpp changed, there is also
used a function lround(), which is not compatible with windows. I had defined
it as:
#define lround(num) ( (long)(num > 0 ? num + 0.5 : ceil(num - 0.5)) )
I don't understand what the MS compiler doesnt like. If anybody has an idea to
overcome this problem or any other idea how to compile for win, please help.
Original comment by marko.bu...@gmail.com
on 23 Aug 2010 at 8:17
Dear Vijay,
I think I have found the solution of problem, but please make a check since I
am an absolute beginer in programming. The line 58 in BBNode.cpp is:
BBNode * temp_node = new BBNode::BBNode(0, this);
I have patched it:
BBNode * temp_node = new BBNode(0, this);
cspsol.exe was created and works good, I will make tests and upload batch files
for compiling and linking and output tests as well.
Original comment by marko.bu...@gmail.com
on 24 Aug 2010 at 6:25
Thank you. Your patch will be committed and will be available in next release.
I assume you are using MS Windows, if you are not already using it, you can try
using SVN client for MS Windows (http://tortoisesvn.tigris.org/). This will
allow you to directly commit the patch (if correct).
Original comment by vijay.pa...@gmail.com
on 25 Aug 2010 at 2:40
Original issue reported on code.google.com by
marko.bu...@gmail.com
on 21 Aug 2010 at 10:52