When I try to compile a simple GLFW program with TCC, I get an error in the gl.h header.
The command I'm using for the compile is
tcc -L./ -lglfw3 -Iglfw/include main.c
Here's the full output of this command
>tcc -L./ -lglfw3 -Iglfw/include main.c
In file included from main.c:1:
In file included from glfw/include/GLFW/glfw3.h:153:
c:/tcc/include/GL/gl.h:1152: error: declaration for parameter '__stdcall' but no such parameter
And here's the simple program I'm trying to compile
#include <GLFW/glfw3.h>
int main()
{
glfwInit();
glfwTerminate();
}
Am I linking something wrong? Or not linking something I'm supposed to be linking? What's wrong with my compile parameters?