Hello,
I am curently trying to use box2d in a nds project. But I have complilation problems... And I have no idea where does it come from :
I have comment the definition of float32 in the jtypes.h file.
I have defined TARGET_IS_NDS.
* When I define TARGET_FLOAT32_IS_FIXED, I have got these errors :
Code:
main.c
In file included from e:/worspaceSubtitles/Destroyer/source/box2d/Include/../Source/Common/b2Settings.h:49,
from e:/worspaceSubtitles/Destroyer/source/box2d/Include/box2d.h:34,
from e:/worspaceSubtitles/Destroyer/source/main.c:6:
e:/worspaceSubtitles/Destroyer/source/box2d/Include/../Source/Common/Fixed.h:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Fixed'
e:/worspaceSubtitles/Destroyer/source/box2d/Include/../Source/Common/Fixed.h:177: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
e:/worspaceSubtitles/Destroyer/source/box2d/Include/../Source/Common/Fixed.h:180: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
..........
VERY LONG LIST :)
-> The Fixed class cannot be defined and there are errors on each function implementation
* When I does not define TARGET_FLOAT32_IS_FIXED, I have got these errors :
Code:
main.c
In file included from e:/worspaceSubtitles/Destroyer/source/box2d/Include/box2d.h:34,
from e:/worspaceSubtitles/Destroyer/source/main.c:6:
e:/worspaceSubtitles/Destroyer/source/box2d/Include/../Source/Common/b2Settings.h:77: error: initializer element is not constant
e:/worspaceSubtitles/Destroyer/source/box2d/Include/../Source/Common/b2Settings.h:87: error: initializer element is not constant
e:/worspaceSubtitles/Destroyer/source/box2d/Include/../Source/Common/b2Settings.h:92: error: initializer element is not constant
e:/worspaceSubtitles/Destroyer/source/box2d/Include/../Source/Common/b2Settings.h:107: error: initializer element is not constant
..........
VERY LONG LIST TOO:)
-> ...
I really don't know where does it come from... Do you have any idea to put me on the right path ? If you need more precisions about the problem, do not hesitate.
Thank you by advance
(Sorry for my english)