titan-lang / titan

The Titan programming language
http://titan-lang.org
MIT License
406 stars 13 forks source link

Error Compiling SDL Example #254

Open Immortalin opened 6 years ago

Immortalin commented 6 years ago
~/.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 commented 6 years ago

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

Immortalin commented 6 years ago

Ubuntu 18.04, x64

Immortalin commented 6 years ago

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

mascarenhas commented 6 years ago

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.