Why does g++ still require -latomic

后端 未结 3 659
粉色の甜心
粉色の甜心 2020-12-18 22:00

In 29.5 Atomic types of the C++ Standard November 2014 working draft it states:

  1. There is a generic class template atomic. The type of
3条回答
  •  旧时难觅i
    2020-12-18 22:36

    g++ is a wrapper for gcc which adds the correct C++ libraries. Clearly -latomic is missing from that list. Not a core compiler problem then, simply a minor bug in the wrapper.

提交回复
热议问题