[Coin-discuss] Sbb Sample1 Make Problem

Laszlo Ladanyi ladanyi at us.ibm.com
Tue Nov 4 23:32:34 EST 2003


First you got to go to the Sbb directory and make the library. 
The sample codes are examples where it is assumed that a user is using the
libs, i.e., the libs have been already compiled and installed.

--Laci

On Tue, 4 Nov 2003 ScottWelz at aol.com wrote:

> I seem to be having a problem making the sbb samples.   I'm getting the 
> messages below which indicate that the included COIN files can't be found.   I've 
> successfully made the sbb unitTest without any problems.   I'm sure I'm missing 
> something simple here, but can't put my finger on it.
> 
> Thanks, Scott
> 
> [Macintosh:coin/sbb/samples] scottwelz% make sample1
> g++      sample1.cpp    -o sample1
> sample1.cpp:11:34: OsiSolverInterface.hpp: No such file or directory
> sample1.cpp:12:24: SbbModel.hpp: No such file or directory
> sample1.cpp:17:27: ClpPresolve.hpp: No such file or directory
> In file included from sample1.cpp:18:
> SbbCompareUser.hpp:15:23: SbbNode.hpp: No such file or directory
> SbbCompareUser.hpp:16:30: SbbCompareBase.hpp: No such file or directory
> In file included from sample1.cpp:18:
> SbbCompareUser.hpp:21: parse error before `{' token
> SbbCompareUser.hpp:28: parse error before `)' token
> SbbCompareUser.hpp:30: destructors must be member functions
> SbbCompareUser.hpp:37: `SbbNode' was not declared in this scope
> SbbCompareUser.hpp:37: `x' was not declared in this scope
> SbbCompareUser.hpp:37: `SbbNode' was not declared in this scope
> SbbCompareUser.hpp:37: `y' was not declared in this scope
> SbbCompareUser.hpp:37: virtual outside class declaration
> SbbCompareUser.hpp:37: warning: initializer list being treated as compound 
>     expression
> SbbCompareUser.hpp:37: syntax error before `{' token
> SbbCompareUser.hpp:57: `SbbModel' was not declared in this scope
> SbbCompareUser.hpp:57: `model' was not declared in this scope
> SbbCompareUser.hpp:58: parse error before `,' token
> SbbCompareUser.hpp:60: virtual outside class declaration
> SbbCompareUser.hpp: In function `void newSolution(...)':
> SbbCompareUser.hpp:61: `model' undeclared (first use this function)
> SbbCompareUser.hpp:61: (Each undeclared identifier is reported only once for 
>     each function it appears in.)
> SbbCompareUser.hpp:65: `objectiveAtContinuous' undeclared (first use this 
>     function)
> SbbCompareUser.hpp:66: `numberInfeasibilitiesAtContinuous' undeclared (first 
>     use this function)
> SbbCompareUser.hpp:67: `weight_' undeclared (first use this function)
> SbbCompareUser.hpp: At global scope:
> SbbCompareUser.hpp:73: `SbbModel' was not declared in this scope
> SbbCompareUser.hpp:73: parse error before `)' token
> SbbCompareUser.hpp:74: virtual outside class declaration
> SbbCompareUser.hpp: In function `void every1000Nodes(...)':
> SbbCompareUser.hpp:75: `numberNodes' undeclared (first use this function)
> SbbCompareUser.hpp: At global scope:
> SbbCompareUser.hpp:78: parse error before `}' token
> sample1.cpp:19:26: CglProbing.hpp: No such file or directory
> sample1.cpp: In function `int main(int, const char**)':
> sample1.cpp:93: `simplex' undeclared (first use this function)
> sample1.cpp:95: `cout' undeclared in namespace `std'
> sample1.cpp:95: `endl' undeclared in namespace `std'
> sample1.cpp:98: `ClpPresolve' undeclared (first use this function)
> sample1.cpp:98: parse error before `;' token
> sample1.cpp:99: `ClpSimplex' undeclared (first use this function)
> sample1.cpp:99: `simplex2' undeclared (first use this function)
> sample1.cpp:99: `pinfo' undeclared (first use this function)
> sample1.cpp:101: `cout' undeclared in namespace `std'
> sample1.cpp:101: `endl' undeclared in namespace `std'
> sample1.cpp:103: `OsiClpSolverInterface' undeclared (first use this function)
> sample1.cpp:103: parse error before `(' token
> sample1.cpp:104: `solver1' undeclared (first use this function)
> sample1.cpp:108: `cout' undeclared in namespace `std'
> sample1.cpp:108: `endl' undeclared in namespace `std'
> sample1.cpp:111: parse error before `(' token
> sample1.cpp:113: `SbbCompareUser' undeclared (first use this function)
> sample1.cpp:114: `compare' undeclared (first use this function)
> sample1.cpp:118: `CglProbing' undeclared (first use this function)
> sample1.cpp:118: parse error before `;' token
> sample1.cpp:119: `generator1' undeclared (first use this function)
> sample1.cpp:130: `OsiMaxNumIterationHotStart' undeclared (first use this 
>     function)
> sample1.cpp:145: `cout' undeclared in namespace `std'
> sample1.cpp:145: `endl' undeclared in namespace `std'
> sample1.cpp:148: `clpSolver' undeclared (first use this function)
> sample1.cpp:148: parse error before `*' token
> sample1.cpp:150: `clp' undeclared (first use this function)
> sample1.cpp:172: `cout' undeclared in namespace `std'
> sample1.cpp:172: `endl' undeclared in namespace `std'
> sample1.cpp:173: `cout' undeclared in namespace `std'
> sample1.cpp:173: `endl' undeclared in namespace `std'
> make: *** [sample1] Error 1
> 




More information about the Coin-discuss mailing list