My project not linking

I want to compile my first project in CLion 2018.3 with GCC 8.2.1
My code:

#include
#include “imgui.h”
#include “imgui_impl_glfw.h”
#include “imgui_impl_opengl3.h”
#include <GL/glew.h>
#include <GLFW/glfw3.h>
using namespace std;
int main() {
if(!glfwInit())
return -1;
glewExperimental = 1;
glewInit();
ImGui::CreateContext();
ImGuiIO& io = ImGui::GetIO();
ImGui::StyleColorsDark();
GLFWwindow* window = glfwCreateWindow(600, 400, “My Window”, nullptr, nullptr);
if(!window) {
cout << “Failed to init window” << endl;
return -1;
}
ImGui_ImplGlfw_InitForOpenGL(window,false);
ImGui_ImplOpenGL3_Init();
ImVec4 clear_color = ImVec4(0.45f, 0.55f, 0.60f, 1.00f);
while(!glfwWindowShouldClose(window)) {
glfwPollEvents();
ImGui::ShowDemoWindow();
glfwMakeContextCurrent(window);
glfwSwapBuffers(window);
}
ImGui_ImplOpenGL3_Shutdown();
ImGui_ImplGlfw_Shutdown();
ImGui::DestroyContext();
glfwDestroyWindow(window);
glfwTerminate();
return 0;

CMake compiling project but linker won’t link :-/

Output of linker:

/usr/bin/ld: CMakeFiles/untitled.dir/main.cpp.o: in function main': /home/felen/CLionProjects/untitled/main.cpp:9: undefined reference toglfwInit’
/usr/bin/ld: /home/felen/CLionProjects/untitled/main.cpp:11: undefined reference to glewExperimental' /usr/bin/ld: /home/felen/CLionProjects/untitled/main.cpp:12: undefined reference toglewInit’
/usr/bin/ld: /home/felen/CLionProjects/untitled/main.cpp:16: undefined reference to glfwCreateWindow' /usr/bin/ld: /home/felen/CLionProjects/untitled/main.cpp:24: undefined reference toglfwWindowShouldClose’
/usr/bin/ld: /home/felen/CLionProjects/untitled/main.cpp:25: undefined reference to glfwPollEvents' /usr/bin/ld: /home/felen/CLionProjects/untitled/main.cpp:27: undefined reference toglfwMakeContextCurrent’
/usr/bin/ld: /home/felen/CLionProjects/untitled/main.cpp:28: undefined reference to glfwSwapBuffers' /usr/bin/ld: /home/felen/CLionProjects/untitled/main.cpp:33: undefined reference toglfwDestroyWindow’
/usr/bin/ld: /home/felen/CLionProjects/untitled/main.cpp:34: undefined reference to glfwTerminate' /usr/bin/ld: CMakeFiles/untitled.dir/imgui_impl_glfw.cpp.o: in functionImGui_ImplGlfw_GetClipboardText(void*)’:
/home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:71: undefined reference to glfwGetClipboardString' /usr/bin/ld: CMakeFiles/untitled.dir/imgui_impl_glfw.cpp.o: in functionImGui_ImplGlfw_SetClipboardText(void*, char const*)’:
/home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:76: undefined reference to glfwSetClipboardString' /usr/bin/ld: CMakeFiles/untitled.dir/imgui_impl_glfw.cpp.o: in functionImGui_ImplGlfw_Init(GLFWwindow*, bool, GlfwClientApi)’:
/home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:167: undefined reference to glfwCreateStandardCursor' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:168: undefined reference toglfwCreateStandardCursor’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:169: undefined reference to glfwCreateStandardCursor' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:170: undefined reference toglfwCreateStandardCursor’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:171: undefined reference to glfwCreateStandardCursor' /usr/bin/ld: CMakeFiles/untitled.dir/imgui_impl_glfw.cpp.o:/home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:172: more undefined references toglfwCreateStandardCursor’ follow
/usr/bin/ld: CMakeFiles/untitled.dir/imgui_impl_glfw.cpp.o: in function ImGui_ImplGlfw_Init(GLFWwindow*, bool, GlfwClientApi)': /home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:183: undefined reference toglfwSetMouseButtonCallback’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:184: undefined reference to glfwSetScrollCallback' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:185: undefined reference toglfwSetKeyCallback’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:186: undefined reference to glfwSetCharCallback' /usr/bin/ld: CMakeFiles/untitled.dir/imgui_impl_glfw.cpp.o: in functionImGui_ImplGlfw_Shutdown()’:
/home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:207: undefined reference to glfwDestroyCursor' /usr/bin/ld: CMakeFiles/untitled.dir/imgui_impl_glfw.cpp.o: in functionImGui_ImplGlfw_UpdateMousePosAndButtons()’:
/home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:220: undefined reference to glfwGetMouseButton' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:230: undefined reference toglfwGetWindowAttrib’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:236: undefined reference to glfwSetCursorPos' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:241: undefined reference toglfwGetCursorPos’
/usr/bin/ld: CMakeFiles/untitled.dir/imgui_impl_glfw.cpp.o: in function ImGui_ImplGlfw_UpdateMouseCursor()': /home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:250: undefined reference toglfwGetInputMode’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:257: undefined reference to glfwSetInputMode' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:263: undefined reference toglfwSetCursor’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:264: undefined reference to glfwSetInputMode' /usr/bin/ld: CMakeFiles/untitled.dir/imgui_impl_glfw.cpp.o: in functionImGui_ImplGlfw_UpdateGamepads()’:
/home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:279: undefined reference to glfwGetJoystickAxes' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:280: undefined reference toglfwGetJoystickButtons’
/usr/bin/ld: CMakeFiles/untitled.dir/imgui_impl_glfw.cpp.o: in function ImGui_ImplGlfw_NewFrame()': /home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:313: undefined reference toglfwGetWindowSize’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:314: undefined reference to glfwGetFramebufferSize' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_glfw.cpp:319: undefined reference toglfwGetTime’
/usr/bin/ld: CMakeFiles/untitled.dir/imgui_impl_opengl3.cpp.o: in function ImGui_ImplOpenGL3_RenderDrawData(ImDrawData*)': /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:148: undefined reference toglGetIntegerv’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:149: undefined reference to __glewActiveTexture' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:150: undefined reference toglGetIntegerv’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:151: undefined reference to glGetIntegerv' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:153: undefined reference toglGetIntegerv’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:155: undefined reference to glGetIntegerv' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:156: undefined reference toglGetIntegerv’
/usr/bin/ld: CMakeFiles/untitled.dir/imgui_impl_opengl3.cpp.o:/home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:158: more undefined references to glGetIntegerv' follow /usr/bin/ld: CMakeFiles/untitled.dir/imgui_impl_opengl3.cpp.o: in functionImGui_ImplOpenGL3_RenderDrawData(ImDrawData*)’:
/home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:168: undefined reference to glIsEnabled' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:169: undefined reference toglIsEnabled’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:170: undefined reference to glIsEnabled' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:171: undefined reference toglIsEnabled’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:174: undefined reference to glGetIntegerv' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:180: undefined reference toglEnable’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:181: undefined reference to __glewBlendEquation' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:182: undefined reference toglBlendFunc’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:183: undefined reference to glDisable' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:184: undefined reference toglDisable’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:185: undefined reference to glEnable' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:187: undefined reference toglPolygonMode’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:192: undefined reference to glViewport' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:204: undefined reference to__glewUseProgram’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:205: undefined reference to __glewUniform1i' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:206: undefined reference to__glewUniformMatrix4fv’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:208: undefined reference to __glewBindSampler' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:213: undefined reference to__glewGenVertexArrays’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:214: undefined reference to __glewBindVertexArray' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:215: undefined reference to__glewBindBuffer’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:216: undefined reference to __glewEnableVertexAttribArray' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:217: undefined reference to__glewEnableVertexAttribArray’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:218: undefined reference to __glewEnableVertexAttribArray' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:219: undefined reference to__glewVertexAttribPointer’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:220: undefined reference to __glewVertexAttribPointer' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:221: undefined reference to__glewVertexAttribPointer’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:233: undefined reference to __glewBindBuffer' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:234: undefined reference to__glewBufferData’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:236: undefined reference to __glewBindBuffer' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:237: undefined reference to__glewBufferData’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:260: undefined reference to glScissor' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:262: undefined reference toglScissor’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:265: undefined reference to glBindTexture' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:266: undefined reference toglDrawElements’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:272: undefined reference to __glewDeleteVertexArrays' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:275: undefined reference to__glewUseProgram’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:276: undefined reference to glBindTexture' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:278: undefined reference to__glewBindSampler’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:280: undefined reference to __glewActiveTexture' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:281: undefined reference to__glewBindVertexArray’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:282: undefined reference to __glewBindBuffer' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:283: undefined reference to__glewBlendEquationSeparate’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:284: undefined reference to __glewBlendFuncSeparate' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:285: undefined reference toglEnable’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:285: undefined reference to glDisable' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:286: undefined reference toglEnable’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:286: undefined reference to glDisable' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:287: undefined reference toglEnable’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:287: undefined reference to glDisable' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:288: undefined reference toglEnable’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:288: undefined reference to glDisable' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:290: undefined reference toglPolygonMode’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:292: undefined reference to glViewport' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:293: undefined reference toglScissor’
/usr/bin/ld: CMakeFiles/untitled.dir/imgui_impl_opengl3.cpp.o: in function ImGui_ImplOpenGL3_CreateFontsTexture()': /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:306: undefined reference toglGetIntegerv’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:307: undefined reference to glGenTextures' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:308: undefined reference toglBindTexture’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:309: undefined reference to glTexParameteri' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:310: undefined reference toglTexParameteri’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:311: undefined reference to glPixelStorei' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:312: undefined reference toglTexImage2D’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:318: undefined reference to glBindTexture' /usr/bin/ld: CMakeFiles/untitled.dir/imgui_impl_opengl3.cpp.o: in functionImGui_ImplOpenGL3_DestroyFontsTexture()’:
/home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:328: undefined reference to glDeleteTextures' /usr/bin/ld: CMakeFiles/untitled.dir/imgui_impl_opengl3.cpp.o: in functionCheckShader(unsigned int, char const*)’:
/home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:338: undefined reference to __glewGetShaderiv' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:339: undefined reference to__glewGetShaderiv’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:346: undefined reference to __glewGetShaderInfoLog' /usr/bin/ld: CMakeFiles/untitled.dir/imgui_impl_opengl3.cpp.o: in functionCheckProgram(unsigned int, char const*)’:
/home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:356: undefined reference to __glewGetProgramiv' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:357: undefined reference to__glewGetProgramiv’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:364: undefined reference to __glewGetProgramInfoLog' /usr/bin/ld: CMakeFiles/untitled.dir/imgui_impl_opengl3.cpp.o: in functionImGui_ImplOpenGL3_CreateDeviceObjects()’:
/home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:374: undefined reference to glGetIntegerv' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:375: undefined reference toglGetIntegerv’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:376: undefined reference to glGetIntegerv' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:508: undefined reference to__glewCreateShader’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:509: undefined reference to __glewShaderSource' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:510: undefined reference to__glewCompileShader’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:514: undefined reference to __glewCreateShader' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:515: undefined reference to__glewShaderSource’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:516: undefined reference to __glewCompileShader' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:519: undefined reference to__glewCreateProgram’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:520: undefined reference to __glewAttachShader' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:521: undefined reference to__glewAttachShader’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:522: undefined reference to __glewLinkProgram' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:525: undefined reference to__glewGetUniformLocation’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:526: undefined reference to __glewGetUniformLocation' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:527: undefined reference to__glewGetAttribLocation’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:528: undefined reference to __glewGetAttribLocation' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:529: undefined reference to__glewGetAttribLocation’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:532: undefined reference to __glewGenBuffers' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:533: undefined reference to__glewGenBuffers’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:538: undefined reference to glBindTexture' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:539: undefined reference to__glewBindBuffer’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:540: undefined reference to __glewBindVertexArray' /usr/bin/ld: CMakeFiles/untitled.dir/imgui_impl_opengl3.cpp.o: in functionImGui_ImplOpenGL3_DestroyDeviceObjects()’:
/home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:547: undefined reference to __glewDeleteBuffers' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:548: undefined reference to__glewDeleteBuffers’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:551: undefined reference to __glewDetachShader' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:552: undefined reference to__glewDeleteShader’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:555: undefined reference to __glewDetachShader' /usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:556: undefined reference to__glewDeleteShader’
/usr/bin/ld: /home/felen/CLionProjects/untitled/imgui_impl_opengl3.cpp:559: undefined reference to `__glewDeleteProgram’
collect2: ошибка: выполнение ld завершилось с кодом возврата 1
make[2]: *** [CMakeFiles/untitled.dir/build.make:174: untitled] Ошибка 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/untitled.dir/all] Ошибка 2
make: *** [Makefile:84: all] Ошибка 2

How to fix it?

the problme is not imgui but the lib glfw and glew. so it seem you have not link the libs