cancel
Showing results for 
Search instead for 
Did you mean: 

No support for large atomics

CTapp.1
Senior III

I'm trying to use _Atomic with 64 bit objects, but I get a link failure:

undefined reference to `__atomic_load_8'

The internet says I need to add an option to the link command:

-latomic

However, it looks as if that library is not included with the ST tool chain:

cannot find -latomic: No such file or directory

Has anyone managed to get this working?

There are a number of workarounds that could be used here, but it would be much easier to use the native C feature that's been available since C11.

I'm using STM32CubeIDE V 1.18.1 with GNU Tools 13.3

All posts are made in a personal capacity
MISRA C++ Chair
MISRA C WG Member
Director The MISRA Consortium Limited (TMCL)
1 REPLY 1
mfgkw
Senior III