Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#85 header file common.h lacks neede define to support soya-0.14

general
wont-fix
nobody
None
5
2012-12-01
2012-07-12
Ian Delaney
No

Build of soya-0.14 fails;
Line1 citing error reads;

/usr/include/ode/common.h:111:2: error: #error You must #define dSINGLE or dDOUBLE

sure enough

if defined(dSINGLE)

typedef float dReal;

ifdef dDOUBLE

error You can only #define dSINGLE or dDOUBLE, not both.

endif // dDOUBLE

elif defined(dDOUBLE)

typedef double dReal;

else

error You must #define dSINGLE or dDOUBLE

endif

Neither dSINGLE or dDOUBLE are defined

What the correct define should be is punching above my weight. However
I took a punt;

added

ifndef dSINGLE

define dSINGLE

endif

ahead of the above. It built and installed. This I think is a clue.

Emerging (1 of 1) dev-python/soya-0.14
Installing (1 of 1) dev-python/soya-0.14

I trust you can take it from here.

Discussion

  • Oleh Derevenko
    Oleh Derevenko
    2012-12-01

    You have to define dSINGLE or dDOUBLE in your project that uses ODE headers. This should not be in ODE itself.

     
  • Oleh Derevenko
    Oleh Derevenko
    2012-12-01

    • status: open --> wont-fix
    • milestone: --> general