Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: could not find native static library cplex, perhaps an -L flag is missing? #8

Open
zhumingpassional opened this issue Dec 30, 2024 · 1 comment

Comments

@zhumingpassional
Copy link

Thanks for your valuable lib.

I tried this REPO in rustrover following your instructions, e.g., in cargo.toml I added rplex = {version = "0.2", git = "https://github.com/emallson/rplex.git"}

But it raises error: error: could not find native static library cplex, perhaps an -L flag is missing?

I tried in Windows OS: CPLEX_PATH = {path= "C:\Program Files\IBM\ILOG\CPLEX_Studio128\cplex\bin\x64_win64\cplex1280.dll" }
But it still fails.

could you pls help to solve this problem. Thanks again.

@emallson
Copy link
Owner

I don't have access to CPLEX to test things anymore and haven't for a while now. I'm not sure what the issue would be.

you can try setting the env var:

CPLEX_LIB = "C:\Program Files\IBM\ILOG\CPLEX_Studio128\cplex\bin\x64_win64\cplex1280.dll"

and see if that works. if not then i'm afraid I won't be of much use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants