[Clp] trying to resolve a compile issue

Stefan Vigerske stefan at math.hu-berlin.de
Sun Nov 4 11:00:11 EST 2012


Hi,

On 11/02/2012 04:20 PM, Mata, Gustavo wrote:
> I installed CLP as instructed by the Install instructions.  I'm running Cygwin on my windows laptop and installed g++ and gcc.  When I try to run the make file under the examples directory, I received issues in regards to CLPSimplex.cpp not in the path so I modified the makefile to include the source files.  Now, I'm getting the error below.  Any ideas on how to resolve this issue?  I searched the web and the only thing I can come up with is that I may be using the wrong compiler.
>
> g++ -O3 -pipe -DNDEBUG -pedantic-errors -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long   -DCLP_BUILD -DSAMPLEDIR=\"`cygpath -w /cygdrive/c/clp_build/share/coin/Data/Sample | sed -e 's/\\\\/\\\\\\\\/g'`\" -DNETLIBDIR=\"`cygpath -w /cygdrive/c/clp_build/share/coin/Data/Netlib | sed -e 's/\\\\/\\\\\\\\/g'`\" -I`cygpath -w /cygdrive/c/clp_build/include/coin` -I`cygpath -w /cygdrive/c/clp_build/clp/src` -I`cygpath -w /cygdrive/c/clp_build/coinutils/src` -I`cygpath -w /cygdrive/c/clp_build/BuildTools/headers`   -c -o driver.o `test -f 'driver.cpp' || echo '. /'`driver.cpp
> In file included from C:/clp_build/clp/src/config_default.h:3,
>                   from C:/clp_build/clp/src/ClpConfig.h:36,
>                   from C:/clp_build/clp/src/ClpModel.hpp:9,
>                   from C:/clp_build/clp/src/ClpSimplex.hpp:16,
>                   from driver.cpp:6:
> C:/clp_build/BuildTools/headers/configall_system.h:12:3: #error "Trying to use configall_system for unknown compiler."
> Makefile:145: recipe for target `driver.o' failed
> make: *** [driver.o] Error 1

The includes seem wrong. For building the example, the compiler should 
not include files from C:/clp_build/clp/src/ but from 
/cygdrive/c/clp_build/include/coin.
The latter is also stated first in the include paths.
It sounds like you did wrong modifications to the Makefile.

Did "make install" install all headers without problems in 
C:/clp_build/include/coin ? I.e., is ClpSimplex.hpp there?

Stefan


More information about the Clp mailing list