Community Packages

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!
Tasklist

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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Daniel Micay (thestinger)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Link 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

Closed by  Daniel Micay (thestinger)
Monday, 15 July 2013, 02:11 GMT
Reason for closing:  Won't fix
Comment by Daniel Micay (thestinger) - Monday, 15 July 2013, 02:11 GMT
I switched to using libc++abi because <async> and <future> are broken with libsupc++/libstdc++.

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++.

Loading...