[Coin-discuss] MaxCut build

Laszlo Ladanyi ladanyi at us.ibm.com
Wed Aug 16 13:08:17 EDT 2006


Hmmm... MC_trianglegen.cpp is an obsolete file... It should not be in the
Makefile. It seems I apparently left it in there. I have fixed it now, give it
a try again.

--Laci

On Wed, 16 Aug 2006, Michele Codutti wrote:

> Hi Laszlo, I've tried to build MaxCut from Bcp_2006Aug16.tgz without
> success. It seems that one file is missing:
> Bcp/examples/MaxCut/CG/MC_trianglegen.cpp.
> I've tried to use the same name file from MaxCut_2006Jul25.tgz but I get
> this error:
> 
> g++ -O3 -fomit-frame-pointer -mno-cygwin -pipe -DNDEBUG -pedantic-errors
> -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith
> -Wwrite-strings -Wconversion   `for i in
> include   /home/Administrator/Bcp_2006Aug16/BUILD/inc
> lude; do cygpath -w $i | sed -e 's/^/-I/'; done` -c -o
> CG/MC_trianglegen.o `test
>  -f 'CG/MC_trianglegen.cpp' || echo
> '/'`CG/MC_trianglegen.cpp
> CG/MC_trianglegen.cpp: In function `void MC_get_triplet(const double*,
> int, int,
>  int, int*, double*)':
> CG/MC_trianglegen.cpp:18: error: `MC_edge_index' undeclared (first use
> this function)
> CG/MC_trianglegen.cpp:18: error: (Each undeclared identifier is reported
> only once for each function it appears in.)
> CG/MC_trianglegen.cpp: In function `void MC_generate_triangles(const
> MC_problem&, const double*, int, int, double, BCP_vec<BCP_cut*>&,
> BCP_vec<BCP_row*>&)':
> CG/MC_trianglegen.cpp:121: error:
> `MC_TriangleGen_AroundBranchingNodeFirst' undeclared (first use this
> function)
> CG/MC_trianglegen.cpp:124: error: 'const class MC_problem' has no member
> named 'branching_node'
> CG/MC_trianglegen.cpp:139: error: `drand48' undeclared (first use this
> function)
> 
> CG/MC_trianglegen.cpp:164: error: `MC_TriangleGen_RoundRobin' undeclared
> (first use this function)
> make: *** [CG/MC_trianglegen.o] Error 1
> 
> I get this problem in Linux (SUSE Linux Enterprise 10) also.
> Maybe there's a trivial solution but I don't know what to do!
> Can you retry to rebuild MaxCut to ensure that all compile well?
> Thanks in advance,
> Michele.
> 
> Il giorno lun, 14/08/2006 alle 13.27 -0400, Laszlo Ladanyi ha scritto: 
> > Hi Michele,
> > 
> > I have moved the MaxCut example over to SVN, which should greatly improve
> > portability. If you check out the Bcp project either from the repository or
> > from the tarball site tomorrow or later (see https://projects.coin-or.org/Bcp)
> > then you can give it a try. I have added the ieeefp.h header, but I'm not sure
> > what to do with the -mno-cygwin stuff :-(. Andreas might add a test to the
> > autotool macros that would disable it if the gcc version is 3.4.5 or lower and
> > enable if it's 3.4.6 or higher (apparently this was a known gcc bug).
> > 
> > Anyway, give it a try, and let me know how it works. If anything breaks I'll
> > fix it. (Seems to work on Linux :-)...)
> > 
> > --Laci
> > 
> > _______________________________________________
> > Coin-discuss mailing list
> > Coin-discuss at list.coin-or.org
> > http://list.coin-or.org/mailman/listinfo/coin-discuss
> 
> 
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-discuss
> 




More information about the Coin-discuss mailing list