[Symphony] Link error with milp.c
Romain Marino
marino.romain at gmail.com
Wed Aug 5 07:38:21 EDT 2009
Hi,
I would like to know if the topic below has been solved because I have
exactly the same problem.
I' ve download the 3 packages Symphony : 5.1.0, 5.1.1 and 5.1.8 for windows.
Each time I tried to compile milp.c, indicating well the paths (\include for
.h, and \lib for .lib), I had the same link errors :
*undefined reference to sym_open_environment(), *
*undefined reference to sym_get_infinity(), *
*etc...*
I'm currently working with code::blocks, but I've also tried to compile it
with Dev-cpp, NetBeans and even Microsoft visual studio 2008. I get always
the same link errors!
It's been 3 days that I looked up in every forum, and I can't find
solutions.
I'm despairing
>Hi all,
>
>Forgive a potentially silly question from a complete novice. I'm
trying to
>run the 'milp.c' example to learn how Symphony works. I'm using Visual
C++
>express 2008 with the 'Symphony-5.1.1-win32-msvc-v8' binaries package.
>'milp.c' compiles fine but has trouble linking. I get the following
errors:
>
>main.obj : error LNK2019: unresolved external symbol
>_sym_close_environment referenced in function _main
>main.obj : error LNK2019: unresolved external symbol _sym_get_obj_val
>referenced in function _main
>main.obj : error LNK2019: unresolved external symbol
>_sym_get_col_solution referenced in function _main
>main.obj : error LNK2019: unresolved external symbol _sym_solve
>referenced in function _main
>main.obj : error LNK2019: unresolved external symbol
>_sym_explicit_load_problem referenced in function _main
>main.obj : error LNK2019: unresolved external symbol _sym_get_infinity
>referenced in function _main
>main.obj : error LNK2019: unresolved external symbol
>_sym_open_environment referenced in function _main
>C:\Documents and Settings\yang.sui\My Documents\Visual Studio
>2008\Projects\symphony\Debug\symphony.exe : fatal error LNK1120: 7
>unresolved externals
>
>
>I believe all my include directories are correctly set, as well as
library
>dependencies. I've tried using Visual C++ 2005 and but end up with the
>exact same problems. I also built the symphony code from source using
>Cygwin and tried the 'milp.c' example in Eclipse but I have the same
>problems there.
>
>What am I doing wrong?
>
>Thanks in advance for your time.
>
>Yang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/symphony/attachments/20090805/e7dbccbe/attachment.html>
More information about the Symphony
mailing list