Skip to content

GCC compile issues #3

Description

@theo77186

After this cleanup patch 5635d83, Roc still cannot be compiled using gcc. The following have to be fixed:

  • Segfault with a pair of setjmp/longjmp in the UCI main loop.
  • GetTickCount64 is available only on Windows Vista and later and requires #define _WIN32_WINNT 0x0600 on gcc.
  • gcc complains on NullTerminate and check_state that is called before declaration (but still compiles with -fpermissive)
  • ::main must be int though the return statement is unreachable
  • missing some includes (cmath for log, sqrt etc and algorithm std::find and std::sort
  • the TBProbe is duplicated (beginning and lines ~1700)

I'll probably do a PR for all but the 3rd (code structure).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions