Menu

#188 Building demos with GCC-7 fails

In_STABLE
closed
None
1
2018-03-25
2018-03-25
Hodorgasm
No

Building demos from ODE-0.14 with GCC-7 fails with:

demo_piston.cpp: In function int main(int, char**)’:
demo_piston.cpp:662:40: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
                             argv[j] == '\0' ||  // We should have a path here
                                        ^~~~
make[2]: *** [Makefile:887: demo_piston.o] Error 1
make[2]: *** Waiting for unfinished jobs....
demo_jointPR.cpp: In function int main(int, char**)’:
demo_jointPR.cpp:332:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
                         argv[j] == '\0' ||  // We should have a path here
                                    ^~~~
make[2]: *** [Makefile:887: demo_jointPR.o] Error 1
demo_jointPU.cpp: In function int main(int, char**)’:
demo_jointPU.cpp:579:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
              argv[j] == '\0' ||  // We should have a path here
                         ^~~~
make[2]: *** [Makefile:887: demo_jointPU.o] Error 1

GCC-7 forbids implict conversions from bool or char literals to pointers.

1 Attachments

Discussion

  • Oleh Derevenko

    Oleh Derevenko - 2018-03-25

    The project has been moved to https://bitbucket.org/odedevs/ode
    You can find your issue fixed there.

     
  • Oleh Derevenko

    Oleh Derevenko - 2018-03-25
    • status: open --> closed
    • assigned_to: Oleh Derevenko
     

Log in to post a comment.

MongoDB Logo MongoDB