I tried to compile Testbed (revision 170) with on my Ubuntu, AMD64 system using GCC thru Code::Blocks, as well as using make (followed the wiki guide to modify the makefile).
First, I got 50+ warnings about "Statement has no effect" on B2_NOT_USED. So I removed the -Wall option for the Engine project.
Then I got these:
Sorry for the Swedish error descriptions, I'll translate if it's unclear what they mean.
I got the same errors when just running make, so I'm assuming this is unrelated to Code::Blocks itself and probably means I'm missing some header or something. But what? Where are these things normally declared/defined?
First, I got 50+ warnings about "Statement has no effect" on B2_NOT_USED. So I removed the -Wall option for the Engine project.
Then I got these:
Code:
-------------- Build: Debug in Engine ---------------
/media/Storage/API/box2d/Source/Dynamics/Contacts/b2ContactSolver.cpp:728:7: varning: inget nyradstecken vid slutet av filen (no newline at end of file)
-------------- Build: Debug in FreeGlut ---------------
/media/Storage/API/box2d/Contrib/freeglut/freeglut_gamemode.c: I funktion "glutEnterGameMode":
/media/Storage/API/box2d/Contrib/freeglut/freeglut_gamemode.c:466: varning: implicit deklaration av funktionen "usleep"
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c: I funktion "fghJoystickRawRead":
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:681: varning: implicit deklaration av funktionen "read"
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c: I funktion "fghJoystickOpen":
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1404: varning: implicit deklaration av funktionen "open"
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1404: fel: "O_RDONLY" är odeklarerad (första förekomsten i denna funktion)
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1404: fel: (Varje odeklarerad identifierare rapporteras bara en gång
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1404: fel: för varje funktion den finns i.)
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1422: varning: implicit deklaration av funktionen "fcntl"
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1422: fel: "F_SETFL" är odeklarerad (första förekomsten i denna funktion)
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1422: fel: "O_NONBLOCK" är odeklarerad (första förekomsten i denna funktion)
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c: I funktion "fghJoystickInit":
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1571: varning: implicit deklaration av funktionen "access"
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1571: fel: "F_OK" är odeklarerad (första förekomsten i denna funktion)
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c: I funktion "fgJoystickClose":
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1638: varning: implicit deklaration av funktionen "close"
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c: I funktion "fgJoystickDetect":
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1687: varning: adressen till "fgJoystick" kommer alltid beräknas till "true"
Process terminated with status 1 (0 minutes, 11 seconds)
14 errors, 0 warnings
/media/Storage/API/box2d/Source/Dynamics/Contacts/b2ContactSolver.cpp:728:7: varning: inget nyradstecken vid slutet av filen (no newline at end of file)
-------------- Build: Debug in FreeGlut ---------------
/media/Storage/API/box2d/Contrib/freeglut/freeglut_gamemode.c: I funktion "glutEnterGameMode":
/media/Storage/API/box2d/Contrib/freeglut/freeglut_gamemode.c:466: varning: implicit deklaration av funktionen "usleep"
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c: I funktion "fghJoystickRawRead":
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:681: varning: implicit deklaration av funktionen "read"
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c: I funktion "fghJoystickOpen":
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1404: varning: implicit deklaration av funktionen "open"
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1404: fel: "O_RDONLY" är odeklarerad (första förekomsten i denna funktion)
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1404: fel: (Varje odeklarerad identifierare rapporteras bara en gång
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1404: fel: för varje funktion den finns i.)
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1422: varning: implicit deklaration av funktionen "fcntl"
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1422: fel: "F_SETFL" är odeklarerad (första förekomsten i denna funktion)
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1422: fel: "O_NONBLOCK" är odeklarerad (första förekomsten i denna funktion)
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c: I funktion "fghJoystickInit":
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1571: varning: implicit deklaration av funktionen "access"
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1571: fel: "F_OK" är odeklarerad (första förekomsten i denna funktion)
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c: I funktion "fgJoystickClose":
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1638: varning: implicit deklaration av funktionen "close"
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c: I funktion "fgJoystickDetect":
/media/Storage/API/box2d/Contrib/freeglut/freeglut_joystick.c:1687: varning: adressen till "fgJoystick" kommer alltid beräknas till "true"
Process terminated with status 1 (0 minutes, 11 seconds)
14 errors, 0 warnings
Sorry for the Swedish error descriptions, I'll translate if it's unclear what they mean.
I got the same errors when just running make, so I'm assuming this is unrelated to Code::Blocks itself and probably means I'm missing some header or something. But what? Where are these things normally declared/defined?