[SCIP] Not compile with C++
Satoshi Shirai
sshirai at rls.mse.tcu.ac.jp
Thu Dec 3 07:18:23 CET 2015
Dear Witzig and Matthias,
Thank you for your advice.
I could compile SCIP and VRP as a C++ example.
I've come to be able to begin my program.
Sincerely,
Shirai
On 2015/11/27 15:59, Matthias Miltenberger wrote:
> Dear Shirai,
>
> apparently, you don't have GMP installed on your system.
> Either install it or try the additional make option 'GMP=false'.
>
> If you haven't done so, please read the INSTALL file of SCIP for
> detailed information about the available compilation options and usual
> pitfalls.
>
> all the best
> Matthias
>
> On 27.11.2015 04:20, Satoshi Shirai wrote:
>> Hello Mr. Witzig,
>>
>> Thank you for your answer.
>> I use the vrp example as a reference.
>>
>> BTW, I compiled SCIP as below.
>>
>> > Please note, you have to compile SCIP in scip-path, e.g. with 'make
>> > OPT=opt LPS=spx'
>>
>> I get syntax error as bellow.
>>
>> src/scip/cons_countsols.c:45:17: fatal error: gmp.h: No such file or
>> directory
>> #include <gmp.h>
>> ^
>> compilation terminated.
>>
>>
>> Sincerely,
>> Shirai
>>
>>
>>
>> On 2015/11/26 23:20, Jakob Witzig wrote:
>>> Hi Shirai,
>>>
>>> I think you have not linked SCIP correctly. Did you use the Makefiles
>>> provided by SCIP? You can have a look into the vrp example of SCIP:
>>> scip-path/examples/VRP or http://scip.zib.de/doc/examples/VRP/. This is
>>> an example in C++.
>>>
>>> Please note, you have to compile SCIP in scip-path, e.g. with 'make
>>> OPT=opt LPS=spx', and your code, e.g., scip-path/examples/your_example,
>>> with the same compile command, i.e., again 'make OPT=opt LPS=spx'.
>>>
>>> If your own code is located at a different path as
>>> scip-path/examples/your_example you have to change the SCIPDIR in the
>>> Makefile of your own code, per default this is '../..'.
>>>
>>> Best
>>> Jakob
>>>
>>> On 11/26/15 14:31, Satoshi Shirai wrote:
>>>> Dear,
>>>>
>>>> I want to solve SOCP with C++.
>>>> I get syntax error : undefined reference to `SCIPcreate' and more.
>>>>
>>>> ...
>>>> #include "scip/scip.h"
>>>> #include "objscip/objscip.h"
>>>> #include "objscip/objscipdefplugins.h"
>>>> #include "scip/def.h"
>>>> #include "scip/cons_soc.h"
>>>> #include "objscip/objcloneable.h"
>>>> #include "scip/scipdefplugins.h"
>>>> ...
>>>> int main(int argc, char* argv[])
>>>> SCIP* scip;
>>>> SCIP_CALL(SCIPcreate(&scip));
>>>> ...
>>>>
>>>>
>>>> Sincerely,
>>>> Shirai
>>>>
>
--
----------------------------------------------------
Satoshi Shirai
Robotic Life Support Laboratory,
Department of Mechanical Systems Engineering,
Faculty of Engineering,
Tokyo City University
Tamazutsumi 1-28-1, Setagaya, Tokyo 158-8557, Japan
E-mail: sshirai at rls.mse.tcu.ac.jp
----------------------------------------------------
More information about the Scip
mailing list