search for: weakcpp

Displaying 1 result from an estimated 1 matches for "weakcpp".

2014 May 30
4
[LLVMdev] Error with Gold Linker during LTO
...TO. The resulting executable fails because the symbol for h1 is weak in the first .o and doesn't exist in the second .o. All the actual code is below for reproducing the error. Is this an error in the linker itself or in how LLVM deals with the symbols? Daniel cat > weakCpp.h << \! class C { public: int simple_method() {return 1;} int caller_method() ; }; ! cat > weakImpl.cpp << \! #include "weakCpp.h" int C::caller_method() { return simple_method(); } ! cat > weakMain.cpp << \! #include "weakCpp...