<div dir="ltr">Hi<div><br></div><div>I use llvm-link to link some bitcode files : llvm-link a.bc b.bc c.bc -o test.bc</div><div><br></div><div>And then I use llc to produce object file : llc -filetype=obj  test.bc -o ./test.o</div><div><br></div><div>And then I use clang to produce executable : clang test.o -o test</div><div>but there are some error message like this:</div><div><br></div><div>In function `_do_handshake':<br>llvm-link:(.text+0x3c3ba): undefined reference to `rpl_fcntl'<br>llvm-link:(.text+0x3c3e6): undefined reference to `rpl_fcntl'<br>llvm-link:(.text+0x3c404): undefined reference to `gnutls_handshake'<br><br></div><div>It seems like that it cannot find functions in library.</div><div><br></div><div>What command options I should use so that  I can get a executable successfully?</div><div><br></div><div>I am not familiar with clang/llvm's toolchain.</div><div><br></div><div>Thank you!</div><div><br></div></div>