[SCIP] Not compile with C++

Matthias Miltenberger miltenberger at zib.de
Fri Nov 27 07:59:59 CET 2015


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

-- 
\__________________

Matthias Miltenberger
Zuse Institute Berlin
Takustr. 7, 14195 Berlin
www.zib.de/miltenberger
miltenberger at zib.de
+49 (30) 841 85-245


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5169 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listserv.zib.de/pipermail/scip/attachments/20151127/7f71f566/attachment.p7s>


More information about the Scip mailing list