Advertisement
Guest User

Untitled

a guest
Jul 31st, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. [Sora@SoraLaptop src] $ cat size-test.c
  2. #include <stdio.h>
  3. #include "lua.h"
  4. #include "lauxlib.h"
  5. #include "lualib.h"
  6.  
  7. int main(void)
  8. {
  9. lua_State *L = lua_open();
  10.  
  11. printf("%d", L->stacksize);
  12.  
  13. lua_close(L);
  14.  
  15. return 0;
  16. }
  17. [Sora@SoraLaptop src] $ gcc size-test.c -I. -L. -lliblua.a -o size-test
  18. size-test.c: In function ‘main’:
  19. size-test.c:8:17: warning: initialization makes pointer from integer without a cast [enabled by default]
  20. lua_State *L = lua_open();
  21. ^
  22. size-test.c:10:16: error: dereferencing pointer to incomplete type
  23. printf("%d", L->stacksize);
  24. ^
  25. [Sora@SoraLaptop src] $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement