[Symphony] 'Unresolved external symbol' linking error with 'milp.c' example

Yiqing Zhong yiqing.zhong at ugent.be
Thu Jan 22 17:27:50 EST 2009


Hi!
I'm not sure what paths or dependencies of include and lib you set,  
but I tried the same example in 'SYMPHONY-5.1.0-win32-msvc-v8', with  
Visual C++ express 2005, that's ok! The default definations are kept,  
I don't change anything.

But in SYMPHONY-5.1.10, I tried to change the solver to CPLEX, the  
same link errors ("LNK2019") were happened, even I set the paths of  
include and lib. I didn't fix that yet. If you fix yours, could you  
show that :) Thank you!

Bests!

Terry


Quoting Yang Sui <yang.signup at gmail.com>:

> 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






More information about the Symphony mailing list