Re: libc++ on Fedora 25 broken?

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

 



On Wed, 18 Jan 2017 21:21:17 +0100
cen <imbacen@xxxxxxxxx> wrote:

> Trying to compile a hello world cpp on Fedora 25 with clang++ and
> libc++.
> 
> sudo dnf install clang libcxx-devel
> 
> #include <iostream>
> #include <string>
> 
> int main()
> {
>      std::string a = "abc";
>      std::cout << a;
> }
> 
> clang++ -stdlib=libc++ hello.cpp
> 
> This results in a bunch of linker errors. What am I missing?

Tried, got many linker errors.  Searched on cxa_end_catch, and found
this page.  Might get you closer.
http://stackoverflow.com/questions/7016730/compiling-with-clang-using-libc-undefined-references

Didn't track down the package for -lc++abi, left as an exercise for the
reader.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux