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 Compiling SDL Example #254

Open
Immortalin opened this issue Sep 21, 2018 · 4 comments
Open

Error Compiling SDL Example #254

Immortalin opened this issue Sep 21, 2018 · 4 comments

Comments

@Immortalin
Copy link
Contributor

~/.luarocks/bin/titanc --tree ./ examples/sdl_demo

.//examples/sdl_demo.titan:7:1: type error: failed parsing: SDL2/SDL.h:4092:32: fail
) ( double __x ) ; ex
.//examples/sdl_quit.titan:3:1: type error: failed parsing: SDL2/SDL.h:4092:32: fail
) ( double __x ) ; ex
.//examples/sdl_quit.titan:7:38: type error: trying to access a member of value of type 'nil'
.//examples/sdl_quit.titan:9:12: type error: trying to access a member of value of type 'nil'
.//examples/sdl_demo.titan:13:11: type error: trying to access a member of value of type 'nil'
.//examples/sdl_demo.titan:13:8: type error: trying to compare values of incomparable types: invalid type and integer
.//examples/sdl_demo.titan:23:20: type error: trying to access a member of value of type 'nil'
.//examples/sdl_demo.titan:31:20: type error: trying to access a member of value of type 'nil'
.//examples/sdl_demo.titan:33:12: type error: trying to access a member of value of type 'nil'
.//examples/sdl_demo.titan:37:20: type error: trying to access a member of value of type 'nil'
.//examples/sdl_demo.titan:40:12: type error: trying to access a member of value of type 'nil'
.//examples/sdl_demo.titan:41:12: type error: trying to access a member of value of type 'nil'
.//examples/sdl_demo.titan:45:20: type error: trying to access a member of value of type 'nil'
.//examples/sdl_demo.titan:46:8: type error: trying to access a member of value of type 'nil'
.//examples/sdl_demo.titan:48:12: type error: trying to access a member of value of type 'nil'
.//examples/sdl_demo.titan:49:12: type error: trying to access a member of value of type 'nil'
.//examples/sdl_demo.titan:54:12: type error: trying to access a member of value of type 'nil'
.//examples/sdl_demo.titan:55:12: type error: trying to access a member of value of type 'nil'
.//examples/sdl_demo.titan:56:12: type error: trying to access a member of value of type 'nil'
.//examples/sdl_demo.titan:57:12: type error: trying to access a member of value of type 'nil'
.//examples/sdl_demo.titan:60:8: type error: trying to access a member of value of type 'nil'
.//examples/sdl_demo.titan:61:8: type error: trying to access a member of value of type 'nil'
.//examples/sdl_demo.titan:62:8: type error: trying to access a member of value of type 'nil'
.//examples/sdl_demo.titan:63:8: type error: trying to access a member of value of type 'nil
@hugomg
Copy link
Contributor

hugomg commented Sep 21, 2018

Thanks for the report. Could you tell us what system you are using?

@Immortalin
Copy link
Contributor Author

Ubuntu 18.04, x64

@Immortalin
Copy link
Contributor Author

Using the standard libsdl-dev-2.0 from default apt repos.

@mascarenhas
Copy link
Member

Can you checkout commit 64d1255 to see if it builds using that one? Commit a3df2a1, which followed that one, made changes to the header parser, and knowing that those were the ones that broke the parsing of SDL headers would be useful in tracking down what is wrong.

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

3 participants