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

bug with gcc>10 #22

Open
ZichaoDi opened this issue Apr 6, 2023 · 1 comment
Open

bug with gcc>10 #22

ZichaoDi opened this issue Apr 6, 2023 · 1 comment

Comments

@ZichaoDi
Copy link

ZichaoDi commented Apr 6, 2023

The code doesn't work when compile with gcc version > 9 due to this part of code in ipopt.m
elseif isunix if strcmp( cmp, 'GLNXA64') == 1 myCCompiler = mex.getCompilerConfigurations('C','Selected'); switch myCCompiler.Version(1:1) case {'1','2','3','4','5'} error('mexIPOPT do not support gcc < gcc6'); case {'6'} [x,info] = ipopt_linux_3(varargin{:}); case {'7','8'} [x,info] = ipopt_linux_4(varargin{:}); otherwise [x,info] = ipopt_linux_5(varargin{:}); end elseif strcmp( cmp, 'x86_64-pc-linux-gnu') == 1 % Octave [x,info] = ipopt_linux_5(varargin{:}); else error('IPOPT: No support for architecture %s\n', cmp ); end
It only checks the first digit of the version so any version great than 9 won't work.

@ebertolazzi
Copy link
Owner

OK, for the moment you can try to remove the check of the GCC compiler (remove the check code).
I am working on a new version that will support GCC > 9.

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