https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108013
--- Comment #1 from Jörn Heusipp <manx-bugzilla at problemloesungsmaschine dot de> --- Thanks for the work-around with using a extern "C" {} block. That's actually way better than the extra .c file that I did use.