Pretty standard:
I'm trying to do it in two steps - compile then link.
This produces an object file - hello.o
This fails with two errors:
It looks like I need to specify one or two more libraries. Which?
-
Code:
#include <iostream>
int main()
{
std::cout << "Hello, World!\n";
}
I'm trying to do it in two steps - compile then link.
$ c++ -c hello.cpp
This produces an object file - hello.o
$ ld.lld -l c++ -L /usr/lib -o hello hello.o
This fails with two errors:
Code:
undefined symbol: _Unwind_Resume
undefined symbol: strlen
-