help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Linker error while compiling with glpk.h


From: glpk xypron
Subject: Re: [Help-glpk] Linker error while compiling with glpk.h
Date: Tue, 10 Apr 2012 21:53:25 +0200

Hello Psalm,

after installing a new library like libglpk.so in /usr/lib or
/usr/local/lib you may have to call

sudo ldconfig

to ensure that the library will be found.

Cf.
http://en.wikibooks.org/wiki/GLPK/Linux_OS

Best regards

Xypron
-------- Original-Nachricht --------
> Datum: Tue, 10 Apr 2012 01:56:18 +0530
> Betreff: [Help-glpk] Linker error while compiling with glpk.h

> When I try to compile a C program using glpk functions, I get the the
> following error at the linker. I've checked the include path and it
> contains glpk.h and the lib contains libglpk. I'm compiling on a 64-bit
> machine running ubuntu 11.10
> 
> /tmp/ccPR8ZKY.o: In function `main':
> scheduler_main.c:(.text+0x10): undefined reference to `glp_create_prob'
> scheduler_main.c:(.text+0x2b): undefined reference to `glp_set_prob_name'
> scheduler_main.c:(.text+0x3f): undefined reference to `glp_set_obj_name'
> scheduler_main.c:(.text+0x1ab): undefined reference to `glp_add_cols'
> scheduler_main.c:(.text+0x1c7): undefined reference to `glp_set_col_kind'
> scheduler_main.c:(.text+0x262): undefined reference to `glp_add_cols'
> scheduler_main.c:(.text+0x27e): undefined reference to `glp_set_col_kind'
> scheduler_main.c:(.text+0x2ef): undefined reference to `glp_add_cols'
> scheduler_main.c:(.text+0x30b): undefined reference to `glp_set_col_kind'
> scheduler_main.c:(.text+0x359): undefined reference to `glp_add_cols'
> scheduler_main.c:(.text+0x375): undefined reference to `glp_set_col_kind'
> scheduler_main.c:(.text+0x3a1): undefined reference to `glp_set_col_bnds'
> scheduler_main.c:(.text+0x3f3): undefined reference to `glp_add_cols'
> scheduler_main.c:(.text+0x40f): undefined reference to `glp_set_col_kind'
> scheduler_main.c:(.text+0x43b): undefined reference to `glp_set_col_bnds'
> scheduler_main.c:(.text+0x481): undefined reference to `glp_add_cols'
> scheduler_main.c:(.text+0x49d): undefined reference to `glp_set_col_kind'
> scheduler_main.c:(.text+0x4c9): undefined reference to `glp_set_col_bnds'
> scheduler_main.c:(.text+0x4dd): undefined reference to `glp_set_obj_dir'
> scheduler_main.c:(.text+0x4fe): undefined reference to `glp_set_obj_coef'
> scheduler_main.c:(.text+0x529): undefined reference to `glp_set_obj_coef'
> scheduler_main.c:(.text+0x55b): undefined reference to `glp_add_rows'
> scheduler_main.c:(.text+0x583): undefined reference to `glp_set_row_bnds'
> scheduler_main.c:(.text+0x60d): undefined reference to `glp_init_iocp'
> scheduler_main.c:(.text+0x626): undefined reference to `glp_intopt'
> scheduler_main.c:(.text+0x648): undefined reference to `glp_mip_status'
> scheduler_main.c:(.text+0x668): undefined reference to `glp_mip_status'
> scheduler_main.c:(.text+0x688): undefined reference to `glp_mip_status'
> scheduler_main.c:(.text+0x6a8): undefined reference to `glp_mip_status'
> collect2: ld returned 1 exit status

-- 
Follow me at http://twitter.com/#!/xypron

Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]