1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 12:18:51 -05:00

Finished dynamic linking test debug output.

This commit is contained in:
Camilla Berglund 2011-11-02 23:10:04 +01:00
parent 0c122bb8ad
commit 8117f4e48d

10
tests/dynamic.c Normal file → Executable file
View File

@ -44,6 +44,13 @@ int main(void)
int major, minor, rev;
glfwGetVersion(&major, &minor, &rev);
printf("GLFW header version: %i.%i.%i\n",
GLFW_VERSION_MAJOR,
GLFW_VERSION_MINOR,
GLFW_VERSION_REVISION);
printf("GLFW library version: %i.%i.%i\n", major, minor, rev);
printf("GLFW library version string: %s\n", glfwGetVersionString());
if (major != GLFW_VERSION_MAJOR ||
minor != GLFW_VERSION_MINOR ||
rev != GLFW_VERSION_REVISION)
@ -52,9 +59,6 @@ int main(void)
exit(EXIT_FAILURE);
}
printf("GLFW version: %i.%i.%i\n", major, minor, rev);
printf("GLFW version string: %s\n", glfwGetVersionString());
if (!glfwInit())
{
fprintf(stderr, "Failed to initialize GLFW\n");