Opened 12 years ago
Closed 11 years ago
#481 closed defect (fixed)
Shared library build is broken with glpk
| Reported by: | amluto | Owned by: | Alpar Juttner |
|---|---|---|---|
| Priority: | major | Milestone: | LEMON 1.4 release |
| Component: | core | Version: | hg main |
| Keywords: | Cc: | ||
| Revision id: |
Description
If I configure with:
cmake .. -DBUILD_SHARED_LIBS:BOOL=ON -DLEMON_ENABLE_GLPK=YES
then the build fails with lots of errors about undefined glp_ symbols.
The library link line is missing -lglpk. I'd submit a patch, but my cmake-foo isn't very good.
Running:
LDFLAGS=-lglpk cmake .. -DBUILD_SHARED_LIBS:BOOL=ON -DLEMON_ENABLE_GLPK=YES
works around the problem, but that's gross.
Attachments (2)
Change History (6)
Changed 11 years ago by
| Attachment: | lemon-1.3-lp-linkage.patch added |
|---|
comment:1 Changed 11 years ago by
This wasn't specific to GLPK. I've attached a patch to fix the issue for GLPK and COIN. I didn't try to fix SOPLEX and CPLEX, since they're non-free.
Changed 11 years ago by
| Attachment: | 70afd6c32697.patch added |
|---|
comment:2 follow-up: 3 Changed 11 years ago by
I believe this simple patch should also work. Could you please check?
comment:3 Changed 11 years ago by
Replying to alpar:
I believe this simple patch should also work. Could you please check?
It works. Thanks.
comment:4 Changed 11 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
This fix is in branches default and 1.3 as [07cd9a2d20e0].


Patch to fix shared library build with GLPK, Clp, and Cbc