Re: /usr/include/c++/11/type_traits:3164:1: error: template with C linkage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2/6/21 18:06, Florian Weimer wrote:
* Kalev Lember:

On 2/6/21 16:08, Antonio T. sagitter wrote:
Hi all.
I can't compile IceCat on Fedora 33+ since some days because of
these errors:
...
/usr/include/c++/11/type_traits:3164:1: error: template with C linkage
..
Any idea why they occur?
Rawhide build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=61460307

This looks like fallout from
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1715 (I don't know
if it's icecat doing something wrong or it's something that glib is
doing wrong).

Icecat is probably including the glib header in an extern "C" block.
You can escape from that by including <type_traits> inside an extern
"C++" block.  See /usr/include/math.h for an example.

Thanks! I went ahead and filed https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1935 with the suggested change.

--
Kalev
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux