[Symphony] Link error with milp.c

Ted Ralphs ted at lehigh.edu
Wed Aug 5 13:41:45 EDT 2009


The binaries you downloaded are for Version 8 of MSVC++ compiler,
which was included with MSVC++ Express 2005. The compiler that comes
with MSVC++ Express 2008 is Version 9, which is incompatible. There
are no Version 9 binaries available at this time (they will be soon),
but there is a solution that builds out of the box with no problems in
MSVC++ Express 2008. I suggest you get the source for SYMPHONY 5.2.0
and look in the directory SYMPHONY/MSVisual Studio/v9. Open
symphony.sln and build the project. It should work fine.

Cheers,

Ted

On Wed, Aug 5, 2009 at 7:38 AM, Romain Marino<marino.romain at gmail.com> wrote:
>
> 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
> _______________________________________________
> Symphony mailing list
> Symphony at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/symphony
>
>



-- 
Dr. Ted Ralphs
Associate Professor, Lehigh University
(610) 628-1280
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted





More information about the Symphony mailing list