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