linking error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lp-solve (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When linking in C++ against this lib, I got linker errors for colamd and symamd:
/usr/lib/
(.text+0x4fe): undefined reference to `colamd_
/usr/lib/
(.text+0x550): undefined reference to `colamd_
/usr/lib/
(.text+0x59b): undefined reference to `colamd'
/usr/lib/
(.text+0x61c): undefined reference to `symamd'
collect2: ld returned 1 exit status
When I download the newest source from http://
If more information is needed, feel free to contact me.
you appear to be wanting to link against the static version of liblpsolve
If you do this you need to explicitly link against colamd from the libcolamd2.7.1 package
It should not be required for dynamic linking against liblpsolve55.so as it will then pull it during runtime: lp_solve/ liblpsolve55. so libcolamd. so.2.7. 1 (0x00007f10f7a6 c000)
ldd -r /usr/lib/
[...] libcolamd.so.2.7.1 => /usr/lib/