Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22000

Why am I getting linker errors using -fgnu-tm?

$
0
0

I'm using GCC 6.2.0 and am trying out the experiemental transaction support. Following the manual, I've added "-fgnu-tm" to my cxxflags and added some synchronized {} blocks to my source code. It compiles fine but then I get linker errors like below:

MyFile.cc:2865: undefined reference to `_ITM_beginTransaction'
MyFile.cc:2873: undefined reference to `_ITM_commitTransaction'

I tried adding "-fgnu-tm" to linker flags as well but it didn't solve the problem. Why am I getting these errors and what can I do to fix it?


Viewing all articles
Browse latest Browse all 22000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>