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

Replace types deprecated by Ipopt #226

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chrhansk
Copy link
Contributor

Certain types have been deprecated in coin-or/Ipopt@fc44469c two years back:

Old New
Number ipnumber
Int int
Index ipindex

They are still used in the interface, causing many warnings:

warning: ‘Int’ is deprecated [-Wdeprecated-declarations]

This patch fixes these warnings by using the new types throughout the interface.

@chrhansk
Copy link
Contributor Author

Edit: This seems to preclude old (< 3.14, pre 2021) versions of Ipopt...

@moorepants
Copy link
Collaborator

We currently support building against IPOPT available in Ubuntu 22.04 (even 18.04 is still technically supported). These are IPOPT=3.11. You'll need to make this PR work with both the old and new types until we drop support. Oddly the Debian Ipopt version does not seem to have been updated in many years.

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

Successfully merging this pull request may close these issues.

2 participants