That is what worries me actually. Apparently libc++abi has to be linked to libc++ but that is not the case with current package:

ldd /usr/lib64/libc++.so
    linux-vdso.so.1 (0x00007ffe1c7d8000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f09d5072000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f09d4cac000)
    libm.so.6 => /lib64/libm.so.6 (0x00007f09d49a3000)
    librt.so.1 => /lib64/librt.so.1 (0x00007f09d479b000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f09d4584000)
    /lib64/ld-linux-x86-64.so.2 (0x000055b90043d000)


I am not a pro in C++, compilers and linkers so perhaps someone with more knowledge can explain how this is supposed to work in the first place.

I also cannot find libc++abi or libcxx-abi in the repo unless it is "cleverly" named as something else.

Perhaps also relavant: https://whatofhow.wordpress.com/2016/03/01/libclibcabi-on-linux/


stan je 18. 01. 2017 ob 23:17 napisal:
On Wed, 18 Jan 2017 21:21:17 +0100
cen <imba...@gmail.com> 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@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to