[SCIP] Using Scip out of an IDE

cteuber at mail.uni-mannheim.de cteuber at mail.uni-mannheim.de
Thu Jun 29 08:31:33 CEST 2017


Hi,

thanks for your quick reply.
I found the readline library and linked it, so the error messages  
concerning readline are gone.
I guess my main problem is, that I am very unfamiliar with linux in  
general and I am clueless where I can find the other libraries.

I am sorry if my questions seem trivial to an experienced linux user,  
but I never needed it until I wanted to use different solvers which  
are not available for windows PCs.

Best regards,

Claus

Zitat von Stefan Vigerske <stefan at math.hu-berlin.de>:

> You seem to miss -lgmp -lz -lreadline at least.
> Just build SCIP with VERBOSE=true to see what compiler and linker  
> flags are used there and try to replicate this in your system, if  
> you have to.
>
> On 06/28/2017 02:17 PM, cteuber at mail.uni-mannheim.de wrote:
>> 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)) ===|
>>
>>
>
>
> -- 
> http://www.gams.com/~stefan
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> https://listserv.zib.de/mailman/listinfo/scip



-- 
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