Skip to content

Error when trying to compile on linux #508

@Link4Electronics

Description

@Link4Electronics

Describe the bug
Hello, trying to compile on linux with gcc 15,
when it gets to wartool.cpp gives this error:

/home/link/Downloads/ArchPKGBUILD/wargus-git/src/wargus-git/wartool.cpp:513:34: error: ‘GetLastError’ was not declared in this scope; did you mean ‘SErrGetLastError’?
  513 |                         nError = GetLastError();
      |                                  ^~~~~~~~~~~~
      |                                  SErrGetLastError
/home/link/Downloads/ArchPKGBUILD/wargus-git/src/wargus-git/wartool.cpp:519:34: error: ‘GetLastError’ was not declared in this scope; did you mean ‘SErrGetLastError’?
  519 |                         nError = GetLastError();
      |                                  ^~~~~~~~~~~~
      |                                  SErrGetLastError
make[2]: *** [CMakeFiles/wartool.dir/build.make:93: CMakeFiles/wartool.dir/wartool.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:180: CMakeFiles/wartool.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Stargus has same issue too but lines 82 and 141, war1gus is fine.
Replacing with the suggestion SErrGetLastError let it compiles without issues.
Regards,
Link.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions