Error message that needs to be a bit more descriptive :

Previous topic - Next topic

MrTAToad

This error message took me a while to work out what it meant :

Code (glbasic) Select
error: no match for call to `(__GLBASIC__::tGameOverDetails) (DGNat&)'

Turns out I was trying to access a TYPE as an array :)

Kitty Hello


MrTAToad

Code (glbasic) Select
TYPE t
x%
ENDTYPE

LOCAL z AS t

z[0].x=1


Various variations of the above can produce some rather interesting error messages :)  For instance :

Code (glbasic) Select
TYPE t
t%
ENDTYPE

LOCAL z AS t
z[0].t=1


C:\Users\Nicholas\AppData\Local\glbasic\gpc_temp_class.h:9: error: expected `,' or `...' before '&' token  =D