<div dir="ltr">I tried to create a window on Linux(as i undestand you need to use additional libraries in Linux)<div>so i tried to reach the this code using CFFI command</div><div><br></div><div> (cffi:foreign-funcall "main" :void :void :int)</div><div><br></div><div>The C CODE:</div><div><br></div><div>#include <GLFW/glfw3.h><br>#include <stdlib.h><br>#include <stdio.h><br>static void error_callback(int error, const char* description)<br>{<br>    fputs(description, stderr);<br>}<br>static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods)<br>{<br>    if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS)<br>        glfwSetWindowShouldClose(window, GL_TRUE);<br>}<br>int main(void)<br>{<br>    GLFWwindow* window;<br></div><div>...</div><div>}</div><div>Which works in C. But SBCL gives me error message:</div><div><br></div><div>Execution of a form compiled with errors.<br>Form:<br>  (EXTERN-ALIEN "main" (FUNCTION INT VOID))<br>Compile-time error:<br>  during macroexpansion of (EXTERN-ALIEN "main" (FUNCTION INT VOID)). Use<br>*BREAK-ON-SIGNALS* to intercept.<br><br> cannot use values types here<br>   [Condition of type SB-INT:COMPILED-PROGRAM-ERROR]<br></div><div><br></div><div>What does this error mean?</div><div>Can we call main function in C using CFFI?</div><div>Is there a solution?</div><div><br></div></div>