Guest User

Untitled

a guest
May 22nd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #include <libotr/proto.h>
  2.  
  3. int main(int argc, char const *argv[])
  4. {
  5. OTRL_INIT;
  6. // OtrlUserState userstate = otrl_userstate_create();
  7.  
  8. return 0;
  9. }
  10.  
  11. g++ main.cpp -o main -L /usr/local/lib/ -lotr
  12.  
  13. Undefined symbols for architecture x86_64:
  14. "otrl_init(unsigned int, unsigned int, unsigned int)", referenced from:
  15. _main in main.o
  16. ld: symbol(s) not found for architecture x86_64
  17. clang: error: linker command failed with exit code 1 (use -v to see invocation)
  18. make: *** [bin/bin] Error 1
  19.  
  20. extern "C" {
  21. #include <libotr/proto.h>
  22. }
Add Comment
Please, Sign In to add comment