Advertisement
AnthonyCagliano

Untitled

May 29th, 2022
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. /Users/acagliano/CEdev/meta/ld.alm [1526] macro ? [1255] :read? [14] obj/lto.src [43]:
  2. extern lib.HASHLIB
  3. extern? [12] (CALM)
  4. Error: symbol ':globals.lib.HASHLIB' is undefined or out of scope.
  5. make: *** [bin/DEMO.bin] Error 2
  6.  
  7. Minimum Reproducible Code:
  8.  
  9. #include <hashlib.h>
  10. #include <libload.h>
  11. #include <stdio.h>
  12.  
  13. #define NIST_RECD_SALT_SIZE 16
  14. #define CEMU_CONSOLE ((char*)0xFB0000)
  15. int main(void)
  16. {
  17. if(libload_IsLibLoaded(HASHLIB)){
  18. uint8_t salt[NIST_RECD_SALT_SIZE];
  19. csrand_init();
  20. csrand_fill(salt, sizeof salt);
  21. return 0;
  22. }
  23. else {
  24. sprintf(CEMU_CONSOLE, "HASHLIB not present");
  25. return 1;
  26. }
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement