Displaying 2 results from an estimated 2 matches for "_zn3foo3barev".
Did you mean:
_zn3foo3barel
2017 Dec 11
2
[lld] bug detecting undefined symbols in shared libraries
...erenced by virtual.cc
>>> virtual.o:(vtable for foo)
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make: *** [test2] Error 1
Note that running test1 results in an error:
$ ./test1
./test1: symbol lookup error: ./virtual.so: undefined symbol: _ZN3foo3barEv
********** CODE main.cc
#include "virtual.h"
int main() {
foo baz;
return 0;
}
********** CODE virtual.h
struct foo {
virtual ~foo();
virtual void bar();
};
********** CODE virtual.cc
#include "virtual.h"
foo::~foo() { }
********* CODE Makefil...
2017 Dec 12
3
[lld] bug detecting undefined symbols in shared libraries
...foo)
>> clang: error: linker command failed with exit code 1 (use -v to see
>> invocation)
>> make: *** [test2] Error 1
>>
>> Note that running test1 results in an error:
>> $ ./test1
>> ./test1: symbol lookup error: ./virtual.so: undefined symbol:
>> _ZN3foo3barEv
>>
>> ********** CODE main.cc
>> #include "virtual.h"
>> int main() {
>> foo baz;
>> return 0;
>> }
>>
>> ********** CODE virtual.h
>> struct foo {
>> virtual ~foo();
>> virtual void ba...