Advertisement
Guest User

Untitled

a guest
Jan 24th, 2021
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.08 KB | None | 0 0
  1. use@fhome:~/imgui_project$ zig build-exe -lc cimgui/cimgui.o cimgui/imgui/*.o cimgui/imgui/examples/imgui_impl_sdl.o -Icimgui/imgui -Icimgui/imgui/examples -I. -Icimgui -lc++ -DCIMGUI_DEFINE_ENUMS_AND_STRUCTS cimgtest.zig
  2. ./cimgtest.zig:1:12: error: C import failed
  3. const ig = @cImport({
  4. ^
  5. cimgui/imgui/imgui.h:178:39: note: must use 'struct' tag to refer to type 'ImGuiInputTextCallbackData'
  6. typedef int (*ImGuiInputTextCallback)(ImGuiInputTextCallbackData* data);
  7. ^
  8. cimgui/imgui/imgui.h:179:35: note: must use 'struct' tag to refer to type 'ImGuiSizeCallbackData'
  9. typedef void (*ImGuiSizeCallback)(ImGuiSizeCallbackData* data);
  10. ^
  11. cimgui/imgui/imgui.h:214:5: note: type name requires a specifier or qualifier
  12. ImVec2() { x = y = 0.0f; }
  13. ^
  14. cimgui/imgui/imgui.h:214:13: note: expected ';' at end of declaration list
  15. ImVec2() { x = y = 0.0f; }
  16. ^
  17. cimgui/imgui/imgui.h:227:5: note: type name requires a specifier or qualifier
  18. ImVec4() { x = y = z = w = 0.0f; }
  19. ^
  20. cimgui/imgui/imgui.h:227:13: note: expected ';' at end of declaration list
  21. ImVec4() { x = y = z = w = 0.0f; }
  22. ^
  23. cimgui/imgui/imgui.h:239:1: note: unknown type name 'namespace'
  24. namespace ImGui
  25. ^
  26. cimgui/imgui/imgui.h:239:16: note: expected ';' after top level declarator
  27. namespace ImGui
  28. ^
  29. cimgui/imgui/imgui.h:1369:1: note: 'inline' can only appear on functions
  30. inline void* operator new(size_t, ImNewWrapper, void* ptr) { return ptr; }
  31. ^
  32. cimgui/imgui/imgui.h:1369:22: note: expected ';' after top level declarator
  33. inline void* operator new(size_t, ImNewWrapper, void* ptr) { return ptr; }
  34. ^
  35. cimgui/imgui/imgui.h:1457:5: note: must use 'struct' tag to refer to type 'ImVec2'
  36. ImVec2 WindowPadding; // Padding within a window.
  37. ^
  38. cimgui/imgui/imgui.h:1460:5: note: must use 'struct' tag to refer to type 'ImVec2'
  39. ImVec2 WindowMinSize; // Minimum window size. This is a global setting. If you want to constraint individual windows, use SetNextWindowSizeConstraints().
  40. ^
  41. cimgui/imgui/imgui.h:1461:5: note: must use 'struct' tag to refer to type 'ImVec2'
  42. ImVec2 WindowTitleAlign; // Alignment for title bar text. Defaults to (0.0f,0.5f) for left-aligned,vertically centered.
  43. ^
  44. cimgui/imgui/imgui.h:1467:5: note: must use 'struct' tag to refer to type 'ImVec2'
  45. ImVec2 FramePadding; // Padding within a framed rectangle (used by most widgets).
  46. ^
  47. cimgui/imgui/imgui.h:1470:5: note: must use 'struct' tag to refer to type 'ImVec2'
  48. ImVec2 ItemSpacing; // Horizontal and vertical spacing between widgets/lines.
  49. ^
  50. cimgui/imgui/imgui.h:1471:5: note: must use 'struct' tag to refer to type 'ImVec2'
  51. ImVec2 ItemInnerSpacing; // Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label).
  52. ^
  53. cimgui/imgui/imgui.h:1472:5: note: must use 'struct' tag to refer to type 'ImVec2'
  54. ImVec2 TouchExtraPadding; // Expand reactive bounding box for touch-based system where touch position is not accurate enough. Unfortunately we don't sort widgets so priority on overlap will always be given to the first widget. So don't grow this too much!
  55. ^
  56. cimgui/imgui/imgui.h:1484:5: note: must use 'struct' tag to refer to type 'ImVec2'
  57. ImVec2 ButtonTextAlign; // Alignment of button text when button is larger than text. Defaults to (0.5f, 0.5f) (centered).
  58. ^
  59. cimgui/imgui/imgui.h:1485:5: note: must use 'struct' tag to refer to type 'ImVec2'
  60. ImVec2 SelectableTextAlign; // Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line.
  61. ^
  62. ./cimgtest.zig:7:9: note: referenced here
  63. _ = ig.igCreateContext(null);
  64. ^
  65.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement