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

DIRserial.c(29): error C2275: 'integer' : illegal use of this type as an expression #259

Closed
jschueller opened this issue Apr 12, 2019 · 3 comments · Fixed by #261
Closed

Comments

@jschueller
Copy link
Collaborator

it seems nlopt master does not build anymore with vs2010 since #230:
src\algs\direct\DIRserial.c(29): error C2275: 'integer' : illegal use of this type as an expression
maybe it's the void cast syntax ?

@stevengj
Copy link
Owner

Oh, the problem is that #230 put some of the void casts before declaration, which is valid C99 but not C89, and MSVC mostly only supports C89.

@stevengj
Copy link
Owner

We should probably test with -std=c89.

jschueller added a commit to jschueller/nlopt that referenced this issue Apr 12, 2019
jschueller added a commit to jschueller/nlopt that referenced this issue Apr 12, 2019
@jschueller
Copy link
Collaborator Author

maybe it's the integer typedef

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 a pull request may close this issue.

2 participants