[SCIP] Using Scip out of an IDE

cteuber at mail.uni-mannheim.de cteuber at mail.uni-mannheim.de
Wed Jun 28 14:17:52 CEST 2017


Hi everybody,

currently I am attending to use Scip.
I successfully downloaded, installed and checked the scipoptsuite-3.2.1.
But I failed to execute the Queens example out of an IDE.
Since I am not familiar with writing make-files I write my Codes in  
Code::Blocks and run it directly out of the IDE. So far this has  
always worked fine for me with for example CPLEX or IPOPT.
Therefore I added all .a-files of the lib-folders of the scip, zimpl  
and soplex directories to the link libraries.
Furthermore I added all src-folders of the scip, zimpl and soplex to  
the search directories of the compiler.

Still, it stops building with a set of errors of the type "undefined  
reference to" (see below).

Can someone tell me what I missed?

I am looking forward to your answers.

Best regard,
Claus

ps: I also tried scipoptsuite-4.0.0 but I had some troubles with the  
installation so I went back to version 3.2.1

||=== Build: Debug in scip_test2 (compiler: GNU GCC Compiler) ===|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(cons_countsols.o)||In  
function `consInitCountsols':|
cons_countsols.c|| undefined reference to `__gmpz_set_si'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(cons_countsols.o)||In  
function `consFreeCountsols':|
cons_countsols.c|| undefined reference to `__gmpz_clear'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(cons_countsols.o)||In  
function `checkSolution':|
cons_countsols.c|| undefined reference to `__gmpz_fits_sint_p'|
cons_countsols.c|| undefined reference to `__gmpz_get_si'|
cons_countsols.c|| undefined reference to `__gmpz_add_ui'|
cons_countsols.c|| undefined reference to `__gmpz_init'|
cons_countsols.c|| undefined reference to `__gmpz_set_si'|
cons_countsols.c|| undefined reference to `__gmpz_mul_ui'|
cons_countsols.c|| undefined reference to `__gmpz_add_ui'|
cons_countsols.c|| undefined reference to `__gmpz_ui_pow_ui'|
cons_countsols.c|| undefined reference to `__gmpz_add'|
cons_countsols.c|| undefined reference to `__gmpz_clear'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(cons_countsols.o)||In  
function `dispOutputSols':|
cons_countsols.c|| undefined reference to `__gmpz_fits_sint_p'|
cons_countsols.c|| undefined reference to `__gmpz_get_si'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(cons_countsols.o)||In  
function `conshdlrCopyCountsols':|
cons_countsols.c|| undefined reference to `__gmpz_init'|
cons_countsols.c|| undefined reference to `__gmp_version'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(cons_countsols.o)||In  
function `SCIPincludeConshdlrCountsols':|
cons_countsols.c|| undefined reference to `__gmpz_init'|
cons_countsols.c|| undefined reference to `__gmp_version'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(cons_countsols.o)||In  
function `SCIPgetNCountedSols':|
cons_countsols.c|| undefined reference to `__gmpz_fits_sint_p'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(cons_countsols.o)||In  
function `SCIPgetNCountedSolsstr':|
cons_countsols.c|| undefined reference to `__gmpz_sizeinbase'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(cons_countsols.o)||In  
function `SCIPdialogExecWriteAllsolutions':|
cons_countsols.c|| undefined reference to `__gmpz_fits_sint_p'|
cons_countsols.c|| undefined reference to `__gmpz_sizeinbase'|
cons_countsols.c|| undefined reference to `__gmpz_get_si'|
cons_countsols.c|| undefined reference to `__gmpz_get_str'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(cons_countsols.o)||In  
function `SCIPdialogExecCount':|
cons_countsols.c|| undefined reference to `__gmpz_fits_sint_p'|
cons_countsols.c|| undefined reference to `__gmpz_get_si'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(cons_countsols.o)||In  
function `SCIPgetNCountedSols':|
cons_countsols.c|| undefined reference to `__gmpz_get_si'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(cons_countsols.o)||In  
function `SCIPgetNCountedSolsstr':|
cons_countsols.c|| undefined reference to `__gmpz_get_str'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(dialog.o)||In  
function `readInputLine':|
dialog.c|| undefined reference to `readline'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(dialog.o)||In  
function `SCIPdialoghdlrCreate':|
dialog.c|| undefined reference to `rl_library_version'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(dialog.o)||In  
function `SCIPdialoghdlrGetLine':|
dialog.c|| undefined reference to `add_history'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(dialog.o)||In  
function `SCIPdialoghdlrGetWord':|
dialog.c|| undefined reference to `add_history'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(dialog.o)||In  
function `SCIPdialoghdlrAddHistory':|
dialog.c|| undefined reference to `history_length'|
dialog.c|| undefined reference to `remove_history'|
dialog.c|| undefined reference to `free_history_entry'|
dialog.c|| undefined reference to `history_length'|
dialog.c|| undefined reference to `add_history'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(dialog.o)||In  
function `SCIPdialogWriteHistory':|
dialog.c|| undefined reference to `write_history'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(fileio.o)||In  
function `SCIPfread':|
fileio.c|| undefined reference to `gzread'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(fileio.o)||In  
function `SCIPfwrite':|
fileio.c|| undefined reference to `gzwrite'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(fileio.o)||In  
function `SCIPfprintf':|
fileio.c|| undefined reference to `gzputs'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(fileio.o)||In  
function `SCIPfseek':|
fileio.c|| undefined reference to `gzseek'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(fileio.o)||In  
function `SCIPfopen':|
fileio.c|| undefined reference to `gzopen'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(fileio.o)||In  
function `SCIPfdopen':|
fileio.c|| undefined reference to `gzdopen'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(fileio.o)||In  
function `SCIPfputc':|
fileio.c|| undefined reference to `gzputc'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(fileio.o)||In  
function `SCIPfputs':|
fileio.c|| undefined reference to `gzputs'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(fileio.o)||In  
function `SCIPfgetc':|
fileio.c|| undefined reference to `gzgetc'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(fileio.o)||In  
function `SCIPfgets':|
fileio.c|| undefined reference to `gzgets'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(fileio.o)||In  
function `SCIPfflush':|
fileio.c|| undefined reference to `gzflush'|
/home/claus/scipoptsuite-3.2.1/scip-3.2.1/lib/libscip.a(fileio.o)||In  
function `SCIPrewind':|
fileio.c|| undefined reference to `gzrewind'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build failed: 50 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|


-- 
Claus Teuber
Lehrstuhl für wissenschaftliches Rechnen
Universität Mannheim
A5, Seminargebäude
D-68131 Mannheim

cteuber at mail.uni-mannheim.de
phone: +49 (0)621 181-2466



More information about the Scip mailing list