<div dir="ltr">Hi Ambros<div><br></div><div>I use the VS libs from SCIP and not mine. I use in fact "scip-3.0.0.win.x86.vc10.opt.spx.mt.lib" which sounds like to be for the release mode.</div><div><br></div><div>
But the following part is still there.</div><div><br></div><div><div>1>src\pricer_vrp.cpp(260): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.</div>
<div>1>          c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string.h(188) : see declaration of 'strncpy'</div><div>1>main_vrp.obj : error LNK2001: unresolved external symbol "enum SCIP_Retcode __cdecl SCIPincludeObjPricer(struct Scip *,class scip::ObjPricer *,unsigned int)" (?SCIPincludeObjPricer@@YA?AW4SCIP_Retcode@@PAUScip@@PAVObjPricer@scip@@I@Z)</div>
<div>1>pricer_vrp.obj : error LNK2001: unresolved external symbol _BMSduplicateMemory_call</div><div>1>pricer_vrp.obj : error LNK2001: unresolved external symbol _BMSfreeMemory_call</div><div>1>D:\work\codes\SCIP\scipoptsuite-3.0.1\scip-3.0.1\examples\VRP2\Release\VRP2.exe : fatal error LNK1120: 3 unresolved externals</div>
</div><div><br></div><div>best regards,</div><div>Shahin</div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Oct 6, 2013 at 7:32 PM, Ambros Gleixner <span dir="ltr"><<a href="mailto:gleixner@zib.de" target="_blank">gleixner@zib.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Shahin,<br>
<br>
are you using the VS libs from the SCIP website or did you build SCIP on your own?<br>
<br>
SCIPinfinity() is different in debug and optimized mode.  When you compile with the NDEBUG flag, SCIPinfinity() becomes a macro and is not available as a function.<br>
<br>
Your problem might be, that your SCIP lib is built in optimized mode (with NDEBUG), but your VRP code in debug mode.  Can you try adding NDEBUG to your compiler flags?<br>
<br>
ambros<br>
<br>
<br>
<br>
Am <a href="tel:05.10.2013%2020" value="+33510201320" target="_blank">05.10.2013 20</a>:32, schrieb Shahin Gelareh:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Dear Scippers<br>
<br>
I successfully compile the VRP on VS2010 windows  but during the linking<br>
process I get  the error message below.<br>
<br>
It seems like e.g. "SCIPinfinity " is not known even when I add the<br>
header file containing it. Also some other external symbols are not found.<br>
The code is compiled as C++ in VS2010.<br>
is there any compiled flag to be set? any preprocessor?<br>
<br>
I appreciate the constructive comments.<br>
<br>
kind regards,<br>
Shahin<br>
<br>
1>------ Build started: Project: VRP, Configuration: Debug Win32 ------<br>
1>main_vrp.obj : error LNK2019: unresolved external symbol<br>
_BMScheckEmptyMemory_call referenced in function _main<br>
1>main_vrp.obj : error LNK2019: unresolved external symbol "enum<br>
SCIP_Retcode __cdecl SCIPincludeObjPricer(struct Scip *,class<br>
scip::ObjPricer *,unsigned int)"<br>
(?SCIPincludeObjPricer@@YA?<u></u>AW4SCIP_Retcode@@PAUScip@@<u></u>PAVObjPricer@scip@@I@Z)<br>
referenced in function _main<br>
1>main_vrp.obj : error LNK2019: unresolved external symbol _SCIPinfinity<br>
referenced in function _main<br>
1>pricer_vrp.obj : error LNK2001: unresolved external symbol _SCIPinfinity<br>
1>pricer_vrp.obj : error LNK2019: unresolved external symbol<br>
_BMSduplicateMemory_call referenced in function "public: __thiscall<br>
scip::ObjPricer::ObjPricer(<u></u>struct Scip *,char const *,char const<br>
*,int,unsigned int)" (??0ObjPricer@scip@@QAE@<u></u>PAUScip@@PBD1HI@Z)<br>
1>pricer_vrp.obj : error LNK2019: unresolved external symbol<br>
_BMSfreeMemory_call referenced in function "public: virtual __thiscall<br>
scip::ObjPricer::~ObjPricer(<u></u>void)" (??1ObjPricer@scip@@UAE@XZ)<br>
1>pricer_vrp.obj : error LNK2019: unresolved external symbol<br>
_SCIPisNegative referenced in function "public: enum SCIP_Retcode<br>
__thiscall ObjPricerVRP::pricing(struct Scip *,bool)"<br>
(?pricing@ObjPricerVRP@@QAE?<u></u>AW4SCIP_Retcode@@PAUScip@@_N@Z<u></u>)<br>
1>pricer_vrp.obj : error LNK2019: unresolved external symbol<br>
_SCIPvarGetUbLocal referenced in function "protected: bool __thiscall<br>
ObjPricerVRP::have_edge(int,<u></u>int)const " (?have_edge@ObjPricerVRP@@IBE_<u></u>NHH@Z)<br>
1>D:\work\codes\SCIP\<u></u>scipoptsuite-3.0.1\scip-3.0.1\<u></u>examples\VRP\Debug\VRP.exe<br>
: fatal error LNK1120: 7 unresolved externals<br>
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========<br>
<br>
<br>
<br>
--<br>
<br>
<br>
<br>
<br></div></div>
______________________________<u></u>_________________<br>
Scip mailing list<br>
<a href="mailto:Scip@zib.de" target="_blank">Scip@zib.de</a><br>
<a href="http://listserv.zib.de/mailman/listinfo/scip" target="_blank">http://listserv.zib.de/<u></u>mailman/listinfo/scip</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
______________________________<u></u>______________________________<br>
Ambros M. Gleixner<br>
Zuse Institute Berlin - Matheon - Berlin Mathematical School<br>
<a href="http://www.zib.de/gleixner" target="_blank">http://www.zib.de/gleixner</a><br>
______________________________<u></u>_________________<br>
Scip mailing list<br>
<a href="mailto:Scip@zib.de" target="_blank">Scip@zib.de</a><br>
<a href="http://listserv.zib.de/mailman/listinfo/scip" target="_blank">http://listserv.zib.de/<u></u>mailman/listinfo/scip</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="margin-left:40px"><img src="http://www.lgi2a.univ-artois.fr/~gelareh/signature.png"><br>
</div></blockquote>
</div>