Fw: [Coin-discuss] Sbb make
Gabrielle A. Grün
grun at cs.sfu.ca
Wed Feb 5 21:43:35 EST 2003
----- Original Message -----
From: "Gabrielle A. Grün" <grun at cs.sfu.ca>
To: "Laszlo Ladanyi" <ladanyi at us.ibm.com>
> Hu Laic,
>
> The Sbb complied after adding "std::" in front of min and max in
> SbbHeuristic.cpp and SbbBranch.cpp. However, even after appending "std::"
> to construct and destroy in ../n3coin/Bcp/include/BCP_sunos.hpp, the
MaxCut
> example does not compile. I have attached a listing of the make below.
> Another variant of the error is "`construct' undefined in namespacde
'std'"
> . Please help. Thanks. I use gcc 3.2.1.
>
>
> Last login: Sat Feb 01 2003 14:49:26 -0800 from h24-71-16-166.vc
> No mail.
> Sun Microsystems Inc. SunOS 5.8 Generic February 2000
>
> The CSSnet is operated by the Centre For Systems Science at Simon
> Fraser University. By accessing this machine and the CSSnet you are
> agreeing to comply with all CSSnet and Simon Fraser University
> policies and procedures. Specifically, you are agreeing to comply with
> SFU policy GP24 which characterizes the ethical and acceptable uses of
> information resources at the University. A copy of GP24 can be found
> on the CSSnet file system in /usr/local/doc/Policy/GP24, and on the SFU
> World Wide Web site at http://www.sfu.ca/policies/general/gp24.htm.
>
> For support please contact the Network Support Group by sending mail
> to gripe at css.sfu.ca or by phone at 291-4204. For emergency support
> on weekends and holidays, please leave messages at 291-4204.
>
> To keep abreast of updates to the CSSnet, please execute the command
> msgs periodically. Archived messages can be found at the URL
> http://fas.sfu.ca/doc/HTML/whatsnew/msgs.html.
>
> ***
>
> /cs/grad1/grun
>
> Executing ~cmpt/standard/login. (report problems to gripe at cs.sfu.ca)
> building the default path for commands
> setting up SunSoft SPARCworks
> setting up Gnu Software Distribution
> setting up OpenWindows 3.3
> setting up X/Windows Version 11 Release
> setting up TeX and LateX ((2e))
> setting up Frame Maker 4.0
> setting up Adobe Acrobat 3 (PDF Tools)
> setting up Modula-3
> setting up the Java Developers Kit
> completed standard.login OK
>
> No new messages.
> executing /cs/grad1/grun/.mylogin
> css{grun}!: users
> rmueller smitrovi chidlow clu smitrovi fchena wliua grun smitrovi xhuanga
> hadley ywangb diancu pwfong hadley hzhangb smitrovi lou rmueller jamie
hllam
> pavol mletourn mjzhan haoz shermer cleee ywangb
>
>
> css{grun}101:
> css{grun}101: cd /cs/mitacs2/grun
> /cs/mitacs2/grun
> css{grun}102: cd n3coun
> n3coun: No such file or directory
> css{grun}103: cd n3coin
> /cs/mitacs2/grun/n3coin
> css{grun}104: cd Bcp
> /cs/mitacs2/grun/n3coin/Bcp
> css{grun}105: cd include
> /cs/mitacs2/grun/n3coin/Bcp/include
> css{grun}106: gemacs BCP
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> (New file)
> Buffers Files Tools Edit Search Mule Help
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ----:---F1 BCP
> (Fundamental)--L1--All-------------------------
> css{grun}107:
> css{grun}107: gemacs BCP_sunos.hpp
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Loading cc-mode...done
> Buffers Files Tools Edit Search Mule C++ Help
> # define NEED_IMPLICIT_TEMPLATE_CLASSES 1
> # define BCP_PtrDiff int
> # define BCP_CONSTRUCT std:::construct
> # define BCP_DESTROY std:::destroy
> # define BCP_DESTROY_RANGE std:::destroy
>
> #endif
>
> #endif
>
>
>
>
>
>
>
>
>
>
> ----:**-F1 BCP_sunos.hpp (C++
> CVS:1.1.1.1)--L29--Bot-------------------
> css{grun}108:
> css{grun}108: cd ..
> /cs/mitacs2/grun/n3coin/Bcp
> css{grun}109: cd ..
> /cs/mitacs2/grun/n3coin
> css{grun}110: cd Examples
> /cs/mitacs2/grun/n3coin/Examples
> css{grun}111: cd MaxCut
> /cs/mitacs2/grun/n3coin/Examples/MaxCut
> css{grun}112: make
> (cd ../../Osi/OsiClp && make install)
> make[1]: Entering directory `/cs/mitacs2/grun/n3coin/Osi/OsiClp'
> (cd /cs/mitacs2/grun/n3coin/Clp && make install)
> make[2]: Entering directory `/cs/mitacs2/grun/n3coin/Clp'
> (cd /cs/mitacs2/grun/n3coin/Coin && make install)
> make[3]: Entering directory `/cs/mitacs2/grun/n3coin/Coin'
> make -f /cs/mitacs2/grun/n3coin/Makefiles/Makefile.lib install
> make[4]: Entering directory `/cs/mitacs2/grun/n3coin/Coin'
> Installing include files...
> Installing libraries...
> make[4]: Leaving directory `/cs/mitacs2/grun/n3coin/Coin'
> make[3]: Leaving directory `/cs/mitacs2/grun/n3coin/Coin'
> make -f Makefile.Clp install
> make[3]: Entering directory `/cs/mitacs2/grun/n3coin/Clp'
> make -f /cs/mitacs2/grun/n3coin/Makefiles/Makefile.lib install
> make[4]: Entering directory `/cs/mitacs2/grun/n3coin/Clp'
> Installing include files...
> Installing libraries...
> make[4]: Leaving directory `/cs/mitacs2/grun/n3coin/Clp'
> make[3]: Leaving directory `/cs/mitacs2/grun/n3coin/Clp'
> make[2]: Leaving directory `/cs/mitacs2/grun/n3coin/Clp'
> (cd /cs/mitacs2/grun/n3coin/Osi && make -f Makefile.Osi install)
> make[2]: Entering directory `/cs/mitacs2/grun/n3coin/Osi'
> (cd ../Coin && make install)
> make[3]: Entering directory `/cs/mitacs2/grun/n3coin/Coin'
> make -f /cs/mitacs2/grun/n3coin/Makefiles/Makefile.lib install
> make[4]: Entering directory `/cs/mitacs2/grun/n3coin/Coin'
> Installing include files...
> Installing libraries...
> make[4]: Leaving directory `/cs/mitacs2/grun/n3coin/Coin'
> make[3]: Leaving directory `/cs/mitacs2/grun/n3coin/Coin'
> make -f /cs/mitacs2/grun/n3coin/Makefiles/Makefile.lib install
> make[3]: Entering directory `/cs/mitacs2/grun/n3coin/Osi'
> Installing include files...
> Installing libraries...
> make[3]: Leaving directory `/cs/mitacs2/grun/n3coin/Osi'
> make[2]: Leaving directory `/cs/mitacs2/grun/n3coin/Osi'
> make -f /cs/mitacs2/grun/n3coin/Makefiles/Makefile.lib install
> make[2]: Entering directory `/cs/mitacs2/grun/n3coin/Osi/OsiClp'
> Installing include files...
> Installing libraries...
> make[2]: Leaving directory `/cs/mitacs2/grun/n3coin/Osi/OsiClp'
> make[1]: Leaving directory `/cs/mitacs2/grun/n3coin/Osi/OsiClp'
> (cd ../../Osi/OsiVol && make install)
> make[1]: Entering directory `/cs/mitacs2/grun/n3coin/Osi/OsiVol'
> (cd /cs/mitacs2/grun/n3coin/Vol && make install)
> make[2]: Entering directory `/cs/mitacs2/grun/n3coin/Vol'
> make -f /cs/mitacs2/grun/n3coin/Makefiles/Makefile.lib install
> make[3]: Entering directory `/cs/mitacs2/grun/n3coin/Vol'
> Installing include files...
> Installing libraries...
> make[3]: Leaving directory `/cs/mitacs2/grun/n3coin/Vol'
> make[2]: Leaving directory `/cs/mitacs2/grun/n3coin/Vol'
> (cd /cs/mitacs2/grun/n3coin/Osi && make -f Makefile.Osi install)
> make[2]: Entering directory `/cs/mitacs2/grun/n3coin/Osi'
> (cd ../Coin && make install)
> make[3]: Entering directory `/cs/mitacs2/grun/n3coin/Coin'
> make -f /cs/mitacs2/grun/n3coin/Makefiles/Makefile.lib install
> make[4]: Entering directory `/cs/mitacs2/grun/n3coin/Coin'
> Installing include files...
> Installing libraries...
> make[4]: Leaving directory `/cs/mitacs2/grun/n3coin/Coin'
> make[3]: Leaving directory `/cs/mitacs2/grun/n3coin/Coin'
> make -f /cs/mitacs2/grun/n3coin/Makefiles/Makefile.lib install
> make[3]: Entering directory `/cs/mitacs2/grun/n3coin/Osi'
> Installing include files...
> Installing libraries...
> make[3]: Leaving directory `/cs/mitacs2/grun/n3coin/Osi'
> make[2]: Leaving directory `/cs/mitacs2/grun/n3coin/Osi'
> make -f /cs/mitacs2/grun/n3coin/Makefiles/Makefile.lib install
> make[2]: Entering directory `/cs/mitacs2/grun/n3coin/Osi/OsiVol'
> Installing include files...
> Installing libraries...
> make[2]: Leaving directory `/cs/mitacs2/grun/n3coin/Osi/OsiVol'
> make[1]: Leaving directory `/cs/mitacs2/grun/n3coin/Osi/OsiVol'
> make -f Makefile.maxcut bcps
> make[1]: Entering directory `/cs/mitacs2/grun/n3coin/Examples/MaxCut'
>
> Creating dependency BCP_lp_branching.d
> /cs/mitacs2/grun/n3coin/Bcp/LP/BCP_lp_branching.cpp:10:28:
OsiWarmStart.hpp:
> No such file or directory
>
> Compiling BCP_lp_param.cpp
> /cs/mitacs2/grun/n3coin/Bcp/include/BCP_vector.hpp: In member function
`void
> BCP_vec<T>::push_back(const T&) [with T = BCP_string]':
> /cs/mitacs2/grun/n3coin/Bcp/LP/BCP_lp_param.cpp:14: instantiated from
here
> /cs/mitacs2/grun/n3coin/Bcp/include/BCP_vector.hpp:177: `BCP_CONSTRUCT'
> undeclared (first use this function)
> /cs/mitacs2/grun/n3coin/Bcp/include/BCP_vector.hpp:177: (Each undeclared
> identifier is reported only once for each function it appears in.)
> make[1]: *** [/cs/mitacs2/grun/n3coin/Bcp/SunOS-g/BCP_lp_param.o] Error 1
> make[1]: Leaving directory `/cs/mitacs2/grun/n3coin/Examples/MaxCut'
> make: *** [maxcut] Error 2
> css{grun}113:
> css{grun}113:
> css{grun}113:
>
>
>
> Gabrielle A. Grün, PhD student
> School of Computing Science
> Simon Fraser University
> Burnaby, B.C.
> V5A 1S6 Canada
> http://www.cs.sfu.ca/~grun/
> http://members.home.net/grun/index.htm
>
> ----- Original Message -----
> From: "Laszlo Ladanyi" <ladanyi at us.ibm.com>
> To: "Gabrielle A. Grün" <grun at cs.sfu.ca>
> Cc: <coin-discuss at www-124.southbury.usf.ibm.com>
> Sent: January 20, 2003 8:02 PM
> Subject: Re: [Coin-discuss] Sbb make
>
>
> > Just put std::max there, that should fix it. What platform are you
> compiling
> > on and what version of what compiler are you using? gcc-2.95.3 has no
> problem
> > compiling the code because it assumes that everything is in std unless
> > specified otherwise.
> >
> > The other option is to include CoinHelperFunctions.hpp and use CoinMax.
> I'd be
> > surprised if this would be needed; we have introduced it back in the
days
> > of egcs-1.1.2, when one could not count on having max properly defined
and
> > even if it was defined it was in a different header on every platform...
> >
> > --Laci
> >
> > On Mon, 20 Jan 2003, [iso-8859-1] Gabrielle A. Grün wrote:
> >
> > >
> > > Hi All,
> > >
> > > I have trouble in compiling or making the Sbb. The following is a
> partial
> > > listing of the make:
> > >
> > > Compiling SbbHeuristic.cpp
> > > SbbHeuristic.cpp: In member function `virtual int
> > > SbbRounding::solution(double&)':
> > > SbbHeuristic.cpp:336: `max' undeclared (first use this function)
> > > SbbHeuristic.cpp:336: (Each undeclared identifier is reported only
once
> for
> > > each function it appears in.)
> > > make[2]: *** [SunOS-g/SbbHeuristic.o] Error 1
> > > make[2]: Leaving directory `/cs/mitacs2/grun/sbb'
> > > make[1]: *** [install] Error 2
> > > make[1]: Leaving directory `/cs/mitacs2/grun/sbb'
> > >
> > > The max function remains undefined even when I inserted my own
> definition.
> > > Any suggestions?
> > >
> > >
> > > Gabrielle A. Grün, PhD student
> > > School of Computing Science
> > > Simon Fraser University
> > > Burnaby, B.C.
> > > V5A 1S6 Canada
> > > http://www.cs.sfu.ca/~grun/
> > > http://members.home.net/grun/index
> > >
> > > _______________________________________________
> > > Coin-discuss mailing list
> > > Coin-discuss at www-124.ibm.com
> > >
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/coin-discuss
> > >
> >
> >
>
More information about the Coin-discuss
mailing list