Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fails when RP3D_COMPILE_TESTS=ON #62

Closed
yurivict opened this issue Aug 4, 2018 · 5 comments
Closed

Fails when RP3D_COMPILE_TESTS=ON #62

yurivict opened this issue Aug 4, 2018 · 5 comments
Assignees

Comments

@yurivict
Copy link

yurivict commented Aug 4, 2018

In file included from /usr/ports/devel/reactphysics3d/work/reactphysics3d-f86038aa31875daacc2d950be7b999c0d6a19986/test/Test.cpp:29:
/usr/include/c++/v1/iomanip:540:15: error: expected expression
    if ( __is.fail ())
              ^
/usr/ports/devel/reactphysics3d/work/reactphysics3d-f86038aa31875daacc2d950be7b999c0d6a19986/test/Test.h:39:34: note: expanded from macro 'fail'
#define fail(text) applyFail(text, __FILE__, __LINE__);
                                 ^
In file included from /usr/ports/devel/reactphysics3d/work/reactphysics3d-f86038aa31875daacc2d950be7b999c0d6a19986/test/Test.cpp:29:
/usr/include/c++/v1/iomanip:555:19: error: expected expression
        if ( __is.fail ())
                  ^
/usr/ports/devel/reactphysics3d/work/reactphysics3d-f86038aa31875daacc2d950be7b999c0d6a19986/test/Test.h:39:34: note: expanded from macro 'fail'
#define fail(text) applyFail(text, __FILE__, __LINE__);
                                 ^
In file included from /usr/ports/devel/reactphysics3d/work/reactphysics3d-f86038aa31875daacc2d950be7b999c0d6a19986/test/Test.cpp:29:
/usr/include/c++/v1/iomanip:560:23: error: expected expression
            if ( __is.fail ())
                      ^
/usr/ports/devel/reactphysics3d/work/reactphysics3d-f86038aa31875daacc2d950be7b999c0d6a19986/test/Test.h:39:34: note: expanded from macro 'fail'
#define fail(text) applyFail(text, __FILE__, __LINE__);
                                 ^
@DanielChappuis
Copy link
Owner

Is it because of the name collision of the fail() method ? I guess there is a fail() method in your iomanip.h header on your system. On which operating system are you trying to compile it ?

Can you try this fix in the fix32 branch ?

@DanielChappuis DanielChappuis self-assigned this Aug 5, 2018
@DanielChappuis
Copy link
Owner

Did you have time to try the fix ?

@yurivict
Copy link
Author

Sorry for the delay. Yes, this fixes the build.


Could you please also tell me what is the right way to run tests?

@DanielChappuis
Copy link
Owner

Ok thanks a lot. I have just merged the fix into the "master" branch.

To run the tests, you can simply run the "./test/tests" command at the root of the build directory.

@yurivict
Copy link
Author

yurivict commented Aug 16, 2018

Thank you.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants