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?

Best regards, cen

_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to