|
From: | Fernando H. Pratti |
Subject: | [Help-glpk] How to link with MS VC++ 6.0? |
Date: | Sat, 15 Nov 2003 14:50:12 -0300 |
Hi all,
I'm having some problems to link any program with
glpk.
I'm using Win2000 Sp4 and MS VC++ 6.0
Sp5.
I've added the glpk.lib to the project settings,
the compilation is without erros, but the link isn't.
This is the errors:
--------------------Configuration: Test - Win32
Debug--------------------
Linking... sample.obj : error LNK2001: unresolved external symbol "void __cdecl glp_lpx_delete_prob(struct LPX *)" (?glp_lpx_delete_prob@@YAXPAULPX@@@Z) sample.obj : error LNK2001: unresolved external symbol "int __cdecl glp_lpx_print_mip(struct LPX *,char *)" (?glp_lpx_print_mip@@YAHPAULPX@@address@hidden) sample.obj : error LNK2001: unresolved external symbol "int __cdecl glp_lpx_integer(struct LPX *)" (?glp_lpx_integer@@YAHPAULPX@@@Z) sample.obj : error LNK2001: unresolved external symbol "int __cdecl glp_lpx_simplex(struct LPX *)" (?glp_lpx_simplex@@YAHPAULPX@@@Z) sample.obj : error LNK2001: unresolved external symbol "void __cdecl glp_lpx_set_col_coef(struct LPX *,int,double)" (?glp_lpx_set_col_coef@@YAXPAULPX@@address@hidden) sample.obj : error LNK2001: unresolved external symbol "void __cdecl glp_lpx_set_obj_dir(struct LPX *,int)" (?glp_lpx_set_obj_dir@@YAXPAULPX@@address@hidden) sample.obj : error LNK2001: unresolved external symbol "void __cdecl glp_lpx_set_col_kind(struct LPX *,int,int)" (?glp_lpx_set_col_kind@@YAXPAULPX@@address@hidden) sample.obj : error LNK2001: unresolved external symbol "void __cdecl glp_lpx_set_col_bnds(struct LPX *,int,int,double,double)" (?glp_lpx_set_col_bnds@@YAXPAULPX@@address@hidden) sample.obj : error LNK2001: unresolved external symbol "void __cdecl glp_lpx_set_row_bnds(struct LPX *,int,int,double,double)" (?glp_lpx_set_row_bnds@@YAXPAULPX@@address@hidden) sample.obj : error LNK2001: unresolved external symbol "void __cdecl glp_lpx_set_mat_row(struct LPX *,int,int,int * const,double * const)" (?glp_lpx_set_mat_row@@YAXPAULPX@@address@hidden) sample.obj : error LNK2001: unresolved external symbol "void __cdecl glp_lpx_add_cols(struct LPX *,int)" (?glp_lpx_add_cols@@YAXPAULPX@@address@hidden) sample.obj : error LNK2001: unresolved external symbol "void __cdecl glp_lpx_add_rows(struct LPX *,int)" (?glp_lpx_add_rows@@YAXPAULPX@@address@hidden) sample.obj : error LNK2001: unresolved external symbol "void __cdecl glp_lpx_set_class(struct LPX *,int)" (?glp_lpx_set_class@@YAXPAULPX@@address@hidden) sample.obj : error LNK2001: unresolved external symbol "struct LPX * __cdecl glp_lpx_create_prob(void)" (?glp_lpx_create_prob@@YAPAULPX@@XZ) Debug/Teste.exe : fatal error LNK1120: 14 unresolved externals Error executing link.exe. Test.exe - 15 error(s), 0
warning(s)
Does anyone could help me?
Thanks in advance,
Fernando H. Pratti
|
[Prev in Thread] | Current Thread | [Next in Thread] |