MADEAPPS / newton-dynamics

Newton Dynamics is an integrated solution for real time simulation of physics environments.
http://www.newtondynamics.com
Other
938 stars 182 forks source link

error: no matching function for call to 'dgInterlockedExchange' #208

Closed AlexandrParkhomenko closed 4 years ago

AlexandrParkhomenko commented 4 years ago

https://aur.archlinux.org/packages/newton-dynamics-git/

newton-dynamics/sdk/dgCore/./dgList.h:432:42: error: no matching function for call to 'dgInterlockedExchange' dgListNode const first = (dgListNode) dgInterlockedExchange ((void*) &m_first, (void) node); ^~~~~ /p/newton-dynamics-git/src/newton-dynamics/sdk/dgCore/./dgTypes.h:541:19: note: candidate function not viable: no known conversion from 'void *' to 'dgInt32 const' (aka 'int const') for 1st argument DG_INLINE dgInt32 dgInterlockedExchange(dgInt32 const ptr, dgInt32 value)

JulioJerez commented 4 years ago

that was me trying to make a lock free list insertion for a faster memory manager, but did not relly work. The function is not used, I see how it can be a problem with some compilers. I commented it out. if you sync it should be ok. thanks for the report.

AlexandrParkhomenko commented 4 years ago

Everything is good. Thanks.