* mingw64-*-gcc-g++-4.9.2-1: Missing libatomic.a ?
@ 2016-01-13 17:48 Christian Franke
2016-01-16 6:22 ` JonY
0 siblings, 1 reply; 2+ messages in thread
From: Christian Franke @ 2016-01-13 17:48 UTC (permalink / raw)
To: cygwin-apps
The MinGW w64 g++ packages lack runtime support for std::atomic.
Testcase:
$ cat testatomic.cc
#include <atomic>
struct S { char a[10]; };
std::atomic<S> x;
int main()
{
S y = {""};
x = y;
return 0;
}
$ cygcheck -f /usr/bin/x86_64-w64-mingw32-g++
mingw64-x86_64-gcc-g++-4.9.2-1
$ x86_64-w64-mingw32-g++ -std=c++11 -c testatomic.cc
$ x86_64-w64-mingw32-g++ -std=c++11 testatomic.o
testatomic.o:testatomic.cc:....: undefined reference to `__atomic_store'
collect2: error: ld returned 1 exit status
$ x86_64-w64-mingw32-g++ -std=c++11 testatomic.o -latomic
/usr/lib/gcc/x86_64-w64-mingw32/4.9.2/../../../../x86_64-w64-mingw32/bin/ld:
cannot find -latomic
collect2: error: ld returned 1 exit status
$ x86_64-w64-mingw32-nm /usr/lib/gcc/x86_64-w64-mingw32/4.9.2/*.a | grep
atomic_store
[not found]
The above works with Cygwin g++.
Christian
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: mingw64-*-gcc-g++-4.9.2-1: Missing libatomic.a ?
2016-01-13 17:48 mingw64-*-gcc-g++-4.9.2-1: Missing libatomic.a ? Christian Franke
@ 2016-01-16 6:22 ` JonY
0 siblings, 0 replies; 2+ messages in thread
From: JonY @ 2016-01-16 6:22 UTC (permalink / raw)
To: cygwin-apps
[-- Attachment #1: Type: text/plain, Size: 185 bytes --]
On 1/14/2016 01:47, Christian Franke wrote:
> The MinGW w64 g++ packages lack runtime support for std::atomic.
>
There is none, also, wrong list, please use the main list.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-16 6:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-13 17:48 mingw64-*-gcc-g++-4.9.2-1: Missing libatomic.a ? Christian Franke
2016-01-16 6:22 ` JonY
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).