Monday 16 February 2015

warning: conflicting types for built-in function â__atomic_compare_exchangeâ static inline int __atomic_compare_exchange(

 Cause: 

 A built-in function in the gcc compiler seems conflicting with the Berkley db function because of the same function name.


 Explaination:

 Few __atomic routines are added in gcc-4.7.0 and above. So one of them is __atomic_compare_exchange and this function also exists in Berkley db.
 That's why it is conflicting.


 Fix:

 Modify the function "__atomic_compare_exchange" in dbinc/atomic.h file in Berkley db to "__atomic_compare_exchange_db"

No comments:

Post a Comment