Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. Downloading v.c...
  2. Attempting to build v.c with GCC...
  3. vc\v_win.c: In function 'main':
  4. vc\v_win.c:7426:19: error: incompatible types when assigning to type 'struct array' from type 'int'
  5. _const_os__args = os__init_os_args(argc, (byteptr *)argv);
  6. ^
  7. vc\v_win.c: In function 'os__open':
  8. vc\v_win.c:10866:7: error: incompatible type for argument 1 of 'string_to_wide'
  9. .cfile = _wfopen(string_to_wide(path), string_to_wide("rb")),
  10. ^
  11. vc\v_win.c:7118:6: note: expected 'string' but argument is of type 'char *'
  12. u16 *string_to_wide(string _str) {
  13. ^
  14. vc\v_win.c: In function 'os__create':
  15. vc\v_win.c:10878:7: error: incompatible type for argument 1 of 'string_to_wide'
  16. .cfile = _wfopen(string_to_wide(path), string_to_wide("wb")),
  17. ^
  18. vc\v_win.c:7118:6: note: expected 'string' but argument is of type 'char *'
  19. u16 *string_to_wide(string _str) {
  20. ^
  21. vc\v_win.c: In function 'os__get_module_filename':
  22. vc\v_win.c:10935:15: error: request for member 'typ' in something not a structure or union
  23. if (status.typ == 93 /* os.SUCCESS */) {
  24. ^
  25. vc\v_win.c:10936:7: error: unknown type name 'os__SUCCESS'
  26. os__SUCCESS *it = (os__SUCCESS *)status.obj; // ST it
  27. ^
  28. vc\v_win.c:10936:26: error: 'os__SUCCESS' undeclared (first use in this function)
  29. os__SUCCESS *it = (os__SUCCESS *)status.obj; // ST it
  30. ^
  31. vc\v_win.c:10936:26: note: each undeclared identifier is reported only once for each function it appears in
  32. vc\v_win.c:10936:39: error: expected expression before ')' token
  33. os__SUCCESS *it = (os__SUCCESS *)status.obj; // ST it
  34. ^
  35. vc\v_win.c: In function 'os__exec':
  36. vc\v_win.c:10984:23: error: 'os__SECURITY_ATTRIBUTES' undeclared (first use in this function)
  37. sa.nLength = sizeof(os__SECURITY_ATTRIBUTES);
  38. ^
  39. vc\v_win.c:11029:26: error: 'os__PROCESS_INFORMATION' undeclared (first use in this function)
  40. start_info.cb = sizeof(os__PROCESS_INFORMATION);
  41. ^
  42. vc\v_win.c: In function 'internal__compile__find_windows_kit_internal':
  43. vc\v_win.c:13074:5: error: incompatible types when returning type 'string' but 'Option_string' was expected
  44. return string_from_wide(value);
  45. ^
  46. vc\v_win.c: In function 'internal__compile__find_windows_kit_root':
  47. vc\v_win.c:13089:7: error: incompatible type for argument 1 of 'string_to_wide'
  48. string_to_wide("SOFTWARE\\Microsoft\\Windows Kits\\Installed Roots"), 0,
  49. ^
  50. vc\v_win.c:7118:6: note: expected 'string' but argument is of type 'char *'
  51. u16 *string_to_wide(string _str) {
  52. ^
  53. gcc failed to compile - Create an issue at 'https://github.com/vlang'
  54. Exiting from error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement