Skip to content

Instantly share code, notes, and snippets.

@michelson
Created April 24, 2016 05:07
Show Gist options
  • Save michelson/8ee0996d819bb0ff8167d76d964b0fc4 to your computer and use it in GitHub Desktop.
Save michelson/8ee0996d819bb0ff8167d76d964b0fc4 to your computer and use it in GitHub Desktop.
cimgui test.c compile
In file included from test.c:2:
./cimgui.h:26:12: error: unknown type name 'ImGuiIO'
CIMGUI_API ImGuiIO* igGetIO();
^
./cimgui.h:27:12: error: unknown type name 'ImGuiStyle'
CIMGUI_API ImGuiStyle* igGetStyle();
^
./cimgui.h:28:12: error: unknown type name 'ImDrawData'
CIMGUI_API ImDrawData* igGetDrawData();
^
./cimgui.h:33:47: error: unknown type name 'ImGuiStyle'
CIMGUI_API void igShowStyleEditor(ImGuiStyle* ref);
^
./cimgui.h:39:85: warning: declaration of 'struct ImVec2' will not be visible outside of this function [-Wvisibility]
CIMGUI_API bool igBegin2(CONST char* name, bool* p_opened, CONST struct ImVec2 size_on_first_use, float bg_alpha, ImGuiWindowFlags flags);
^
./cimgui.h:41:75: warning: declaration of 'struct ImVec2' will not be visible outside of this function [-Wvisibility]
CIMGUI_API bool igBeginChild(CONST char* str_id, CONST struct ImVec2 size, bool border, ImGuiWindowFlags extra_flags);
^
./cimgui.h:42:44: error: unknown type name 'ImGuiID'
CIMGUI_API bool igBeginChildEx(ImGuiID id, CONST struct ImVec2 size, bool border, ImGuiWindowFlags extra_flags);
^
./cimgui.h:42:69: warning: declaration of 'struct ImVec2' will not be visible outside of this function [-Wvisibility]
CIMGUI_API bool igBeginChildEx(ImGuiID id, CONST struct ImVec2 size, bool border, ImGuiWindowFlags extra_flags);
^
./cimgui.h:44:58: warning: declaration of 'struct ImVec2' will not be visible outside of this function [-Wvisibility]
CIMGUI_API void igGetContentRegionMax(struct ImVec2* out);
^
./cimgui.h:45:60: warning: declaration of 'struct ImVec2' will not be visible outside of this function [-Wvisibility]
CIMGUI_API void igGetContentRegionAvail(struct ImVec2* out);
^
./cimgui.h:47:64: warning: declaration of 'struct ImVec2' will not be visible outside of this function [-Wvisibility]
CIMGUI_API void igGetWindowContentRegionMin(struct ImVec2* out);
^
./cimgui.h:48:64: warning: declaration of 'struct ImVec2' will not be visible outside of this function [-Wvisibility]
CIMGUI_API void igGetWindowContentRegionMax(struct ImVec2* out);
^
./cimgui.h:50:12: error: unknown type name 'ImDrawList'
CIMGUI_API ImDrawList* igGetWindowDrawList();
^
./cimgui.h:51:51: warning: declaration of 'struct ImVec2' will not be visible outside of this function [-Wvisibility]
CIMGUI_API void igGetWindowPos(struct ImVec2* out);
^
./cimgui.h:52:52: warning: declaration of 'struct ImVec2' will not be visible outside of this function [-Wvisibility]
CIMGUI_API void igGetWindowSize(struct ImVec2* out);
^
./cimgui.h:58:61: warning: declaration of 'struct ImVec2' will not be visible outside of this function [-Wvisibility]
CIMGUI_API void igSetNextWindowPos(CONST struct ImVec2 pos, ImGuiSetCond cond);
^
./cimgui.h:60:62: warning: declaration of 'struct ImVec2' will not be visible outside of this function [-Wvisibility]
CIMGUI_API void igSetNextWindowSize(CONST struct ImVec2 size, ImGuiSetCond cond);
^
./cimgui.h:61:62: error: unknown type name 'ImVec2'
CIMGUI_API void igSetNextWindowContentSize(CONST ImVec2 size);
^
./cimgui.h:65:57: warning: declaration of 'struct ImVec2' will not be visible outside of this function [-Wvisibility]
CIMGUI_API void igSetWindowPos(CONST struct ImVec2 pos, ImGuiSetCond cond);
^
./cimgui.h:66:58: warning: declaration of 'struct ImVec2' will not be visible outside of this function [-Wvisibility]
CIMGUI_API void igSetWindowSize(CONST struct ImVec2 size, ImGuiSetCond cond);
^
./cimgui.h:69:81: warning: declaration of 'struct ImVec2' will not be visible outside of this function [-Wvisibility]
CIMGUI_API void igSetWindowPosByName(CONST char* name, CONST struct ImVec2 pos, ImGuiSetCond cond);
^
./cimgui.h:70:77: warning: declaration of 'struct ImVec2' will not be visible outside of this function [-Wvisibility]
CIMGUI_API void igSetWindowSize2(CONST char* name, CONST struct ImVec2 size, ImGuiSetCond cond);
^
./cimgui.h:80:66: error: C does not support default arguments
CIMGUI_API void igSetScrollHere(float center_y_ratio = 0.5f);
^ ~~~~
./cimgui.h:81:83: error: C does not support default arguments
CIMGUI_API void igSetScrollFromPosY(float pos_y, float center_y_ratio = 0.5f);
^ ~~~~
./cimgui.h:83:47: error: unknown type name 'ImGuiStorage'
CIMGUI_API void igSetStateStorage(ImGuiStorage* tree);
^
./cimgui.h:84:12: error: unknown type name 'ImGuiStorage'
CIMGUI_API ImGuiStorage* igGetStateStorage();
^
./cimgui.h:87:40: error: unknown type name 'ImFont'
CIMGUI_API void igPushFont(ImFont* font);
^
./cimgui.h:89:46: error: unknown type name 'ImGuiCol'
CIMGUI_API void igPushStyleColor(ImGuiCol idx, CONST struct ImVec4 col);
^
./cimgui.h:89:73: warning: declaration of 'struct ImVec4' will not be visible outside of this function [-Wvisibility]
CIMGUI_API void igPushStyleColor(ImGuiCol idx, CONST struct ImVec4 col);
^
./cimgui.h:91:44: error: unknown type name 'ImGuiStyleVar'
CIMGUI_API void igPushStyleVar(ImGuiStyleVar idx, float val);
^
./cimgui.h:92:47: error: unknown type name 'ImGuiStyleVar'
CIMGUI_API void igPushStyleVarVec(ImGuiStyleVar idx, CONST struct ImVec2 val);
^
./cimgui.h:92:79: warning: declaration of 'struct ImVec2' will not be visible outside of this function [-Wvisibility]
CIMGUI_API void igPushStyleVarVec(ImGuiStyleVar idx, CONST struct ImVec2 val);
^
./cimgui.h:94:12: error: unknown type name 'ImFont'
CIMGUI_API ImFont* igGetFont();
^
./cimgui.h:96:54: error: unknown type name 'ImVec2'
CIMGUI_API void igGetFontTexUvWhitePixel(ImVec2* pOut);
^
./cimgui.h:97:12: error: unknown type name 'ImU32'
CIMGUI_API ImU32 igGetColorU32(ImGuiCol idx, float alpha_mul);
^
./cimgui.h:97:43: error: unknown type name 'ImGuiCol'
CIMGUI_API ImU32 igGetColorU32(ImGuiCol idx, float alpha_mul);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
17 warnings and 20 errors generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment