Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#36152 - Link error while linking programm using the typeid operator
Attached to Project:
Community Packages
Opened by Vlad (cruebob) - Sunday, 14 July 2013, 21:39 GMT
Last edited by Daniel Micay (thestinger) - Monday, 15 July 2013, 02:11 GMT
Opened by Vlad (cruebob) - Sunday, 14 July 2013, 21:39 GMT
Last edited by Daniel Micay (thestinger) - Monday, 15 July 2013, 02:11 GMT
|
DetailsLink error while linking programm using the typeid operator
with compiler optins: clang++ -std=c++11 -stdlib=libc++ "undefined reference to 'typeinfo for int'" Programm #include <iostream> #include <typeinfo> int main() { std::cout << typeid(int).name() << std::endl; return 0 } P.S. with optins -Wl,-lstdc++ programm links fine. |
This task depends upon
There's now a post-install message explaining that -lc++abi must be used. It's required because clang on Arch Linux is compiled with libsupc++ as the system C++ ABI. Runtime typing is supported directly in libc++abi but *not* in libsupc++.