syzygy1 / Cfish

C port of Stockfish
GNU General Public License v3.0
137 stars 58 forks source link

compiling errors by MSYS2 MinGW64 9.2.0 #114

Closed caissist closed 4 years ago

caissist commented 4 years ago

In file included from benchmark.c:27: position.h:7:1: error: expected identifier or '(' before '<' token 7 | <!DOCTYPE html> | ^ In file included from benchmark.c:27: position.h:32:37: error: stray '\302' in program 32 | Cfish/position.h at master · syzygy1/Cfish · GitHub | ^ position.h:32:38: error: stray '\267' in program 32 | Cfish/position.h at master · syzygy1/Cfish · GitHub | ^ position.h:32:54: error: stray '\302' in program 32 | Cfish/position.h at master · syzygy1/Cfish · GitHub | ^ position.h:32:55: error: stray '\267' in program 32 | Cfish/position.h at master · syzygy1/Cfish · GitHub | ^ In file included from benchmark.c:27: position.h:150:13: error: expected '=', ',', ';', 'asm' or 'attribute' before '<' token 150 | | ^ In file included from benchmark.c:27: position.h:176:267: error: expected identifier or '(' before '<' token 176 | Features | ^ position.h:189:332: error: expected identifier or '(' before '<' token 189 |

  • Customer stories
  • | ^ position.h:190:308: error: expected identifier or '(' before '<' token 190 |
  • Security
  • | ^ position.h:210:299: error: expected identifier or '(' before '<' token 210 |
  • Explore GitHub
  • | ^ position.h:213:123: error: expected '=', ',', ';', 'asm' or 'attribute' before '<' token 213 |

    Learn & contribute

    | ^ position.h:246:262: error: expected identifier or '(' before '<' token 246 | Plans | ^ position.h:254:312: error: expected identifier or '(' before '<' token 254 |
  • Nonprofit
  • | ^ position.h:255:335: error: expected identifier or '(' before '<' token 255 |
  • Education
  • | ^ position.h:273:10: warning: missing terminating ' character 273 |
    | ^ position.h:632:16: error: missing terminating ' character 632 |
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from benchmark.c:27: position.h:698:7: error: expected identifier or '(' before '<' token 698 |
    | ^ position.h:839:70: error: stray '#' in program 839 | #ifndef POSITION_H | ^ position.h:843:70: error: stray '#' in program 843 | #define POSITION_H | ^ position.h:852:70: error: stray '#' in program 852 | #include <assert.h> | ^ position.h:852:149: error: expected identifier or '(' before '<' token 852 | #include <assert.h> | ^ position.h:852:189: error: expected identifier or '(' before '<' token 852 | #include <assert.h> | ^ position.h:856:70: error: stray '#' in program 856 | #ifndef _WIN32 | ^ position.h:860:70: error: stray '#' in program 860 | #include <pthread.h> | ^ position.h:860:149: error: expected identifier or '(' before '<' token 860 | #include <pthread.h> | ^ position.h:860:190: error: expected identifier or '(' before '<' token 860 | #include <pthread.h> | ^ position.h:864:70: error: stray '#' in program 864 | #endif | ^ position.h:868:70: error: stray '#' in program 868 | #include <stdatomic.h> | ^ position.h:868:149: error: expected identifier or '(' before '<' token 868 | #include <stdatomic.h> | ^ position.h:868:192: error: expected identifier or '(' before '<' token 868 | #include <stdatomic.h> | ^ position.h:872:70: error: stray '#' in program 872 | #include <stddef.h> // For offsetof() | ^ position.h:872:149: error: expected identifier or '(' before '<' token 872 | #include <stddef.h> // For offsetof() | ^ position.h:872:189: error: expected identifier or '(' before '<' token 872 | #include <stddef.h> // For offsetof() | ^ position.h:876:70: error: stray '#' in program 876 | #include <string.h> | ^ position.h:876:149: error: expected identifier or '(' before '<' token 876 | #include <string.h> | ^ position.h:876:189: error: expected identifier or '(' before '<' token 876 | #include <string.h> | ^ position.h:885:70: error: stray '#' in program 885 | #include "bitboard.h" | ^ position.h:885:151: error: expected identifier or '(' before '<' token 885 | #include "bitboard.h" | ^ position.h:885:195: error: expected identifier or '(' before '<' token 885 | #include "bitboard.h" | ^ position.h:889:70: error: stray '#' in program 889 | #include "types.h" | ^ position.h:889:151: error: expected identifier or '(' before '<' token 889 | #include "types.h" | ^ position.h:889:192: error: expected identifier or '(' before '<' token 889 | #include "types.h" | ^ position.h:898:180: error: expected identifier or '(' before '<' token 898 | extern const char PieceToChar[]; | ^ position.h:902:145: error: expected identifier or '(' before '<' token 902 | extern Key matKey[16]; | ^ position.h:931:71: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic] 931 | }; | ^ position.h:931:72: error: expected identifier or '(' before '<' token 931 | }; | ^ position.h:940:144: error: expected identifier or '(' before '<' token 940 | extern struct Zob zob; | ^ position.h:949:170: error: expected identifier or '(' before '<' token 949 | void psqt_init(void); | ^ position.h:953:169: error: expected identifier or '(' before '<' token 953 | void zob_init(void); | ^ position.h:1227:72: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic] 1227 | }; | ^ position.h:1227:73: error: expected identifier or '(' before '<' token 1227 | }; | ^ position.h:1236:150: error: expected identifier or '(' before '<' token 1236 | typedef struct Stack Stack; | ^ position.h:1245:71: error: stray '#' in program 1245 | #define StateCopySize offsetof(Stack, capturedPiece) | ^ position.h:1249:71: error: stray '#' in program 1249 | #define StateSize offsetof(Stack, pv) | ^ position.h:1253:71: error: stray '#' in program 1253 | #define SStackBegin(st) (&st.pv) | ^ position.h:1253:182: error: expected '=', ',', ';', 'asm' or 'attribute' before '.' token 1253 | #define SStackBegin(st) (&st.pv) | ^ position.h:1257:71: error: stray '#' in program 1257 | #define SStackSize (offsetof(Stack, countermove) - offsetof(Stack, pv)) | ^ position.h:1324:71: error: stray '#' in program 1324 | #ifdef PEDANTIC | ^ position.h:1352:71: error: stray '#' in program 1352 | #endif | ^ position.h:1488:71: error: stray '#' in program 1488 | #ifndef _WIN32 | ^ position.h:1504:71: error: stray '#' in program 1504 | #else | ^ position.h:1516:71: error: stray '#' in program 1516 | #endif | ^ position.h:1520:72: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic] 1520 | }; | ^ position.h:1520:73: error: expected identifier or '(' before '<' token 1520 | }; | ^ position.h:1533:226: error: expected identifier or '(' before '<' token 1533 | void pos_set(Pos pos, char fen, int isChess960); | ^ position.h:1537:216: error: expected identifier or '(' before '<' token 1537 | void pos_fen(const Pos pos, char fen); | ^ position.h:1541:149: error: expected identifier or '(' before '<' token 1541 | void print_pos(Pos pos); | ^ position.h:1558:120: error: expected identifier or '(' before '<' token 1558 | Bitboard pinners); | ^ position.h:1567:192: error: expected identifier or '(' before '<' token 1567 | PURE int is_legal(const Pos pos, Move m); | ^ position.h:1571:199: error: expected identifier or '(' before '<' token 1571 | PURE int is_pseudo_legal(const Pos pos, Move m); | ^ position.h:1575:214: error: expected identifier or '(' before '<' token 1575 | PURE int gives_check_special(const Pos pos, Stack st, Move m); | ^ position.h:1588:197: error: expected identifier or '(' before '<' token 1588 | void do_move(Pos pos, Move m, int givesCheck); | ^ position.h:1592:157: error: expected identifier or '(' before '<' token 1592 | void undo_move(Pos pos, Move m); | ^ position.h:1596:152: error: expected identifier or '(' before '<' token 1596 | void do_null_move(Pos pos); | ^ position.h:1600:161: error: expected identifier or '(' before '<' token 1600 | INLINE void undo_null_move(Pos pos); | ^ position.h:1613:168: error: expected identifier or '(' before '<' token 1613 | PURE Value see_sign(const Pos pos, Move m); | ^ position.h:1617:205: error: expected identifier or '(' before '<' token 1617 | PURE Value see_test(const Pos pos, Move m, int value); | ^ position.h:1626:167: error: expected identifier or '(' before '<' token 1626 | PURE Key key_after(const Pos pos, Move m); | ^ position.h:1630:183: error: expected identifier or '(' before '<' token 1630 | PURE int is_draw(const Pos pos); | ^ position.h:1634:226: error: expected identifier or '(' before '<' token 1634 | PURE bool has_game_cycle(const Pos *pos, int ply); | ^ position.h:1647:71: error: stray '#' in program 1647 | #define pieces() (pos->byTypeBB[0]) | ^ position.h:1647:159: error: expected expression before '<' token 1647 | #define pieces() (pos->byTypeBB[0]) | ^ position.h:1651:71: error: stray '#' in program 1651 | #define pieces_p(p) (pos->byTypeBB[p]) | ^ position.h:1651:188: error: 'p' undeclared here (not in a function) 1651 | #define pieces_p(p) (pos->byTypeBB[p]) | ^ position.h:1651:190: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1651 | #define pieces_p(p) (pos->byTypeBB[p]) | ^ position.h:1655:71: error: stray '#' in program 1655 | #define pieces_pp(p1,p2) (pos->byTypeBB[p1] | pos->byTypeBB[p2]) | ^ position.h:1655:193: error: 'p1' undeclared here (not in a function) 1655 | #define pieces_pp(p1,p2) (pos->byTypeBB[p1] | pos->byTypeBB[p2]) | ^~ position.h:1655:197: error: expected '=', ',', ';', 'asm' or 'attribute' before '|' token 1655 | #define pieces_pp(p1,p2) (pos->byTypeBB[p1] | pos->byTypeBB[p2]) | ^ position.h:1655:216: error: 'p2' undeclared here (not in a function) 1655 | #define pieces_pp(p1,p2) (pos->byTypeBB[p1] | pos->byTypeBB[p2]) | ^~ position.h:1655:219: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1655 | #define pieces_pp(p1,p2) (pos->byTypeBB[p1] | pos->byTypeBB[p2]) | ^ position.h:1659:71: error: stray '#' in program 1659 | #define pieces_c(c) (pos->byColorBB[c]) | ^ position.h:1659:189: error: 'c' undeclared here (not in a function) 1659 | #define pieces_c(c) (pos->byColorBB[c]) | ^ position.h:1659:191: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1659 | #define pieces_c(c) (pos->byColorBB[c]) | ^ position.h:1663:71: error: stray '#' in program 1663 | #define pieces_cp(c,p) (pieces_p(p) & pieces_c(c)) | ^ position.h:1663:192: error: expected identifier or '(' before '<' token 1663 | #define pieces_cp(c,p) (pieces_p(p) & pieces_c(c)) | ^ position.h:1667:71: error: stray '#' in program 1667 | #define pieces_cpp(c,p1,p2) (pieces_pp(p1,p2) & pieces_c(c)) | ^ position.h:1667:202: error: expected identifier or '(' before '<' token 1667 | #define pieces_cpp(c,p1,p2) (pieces_pp(p1,p2) & pieces_c(c)) | ^ position.h:1671:71: error: stray '#' in program 1671 | #define piece_on(s) (pos->board[s]) | ^ position.h:1671:185: error: 's' undeclared here (not in a function) 1671 | #define piece_on(s) (pos->board[s]) | ^ position.h:1671:187: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1671 | #define piece_on(s) (pos->board[s]) | ^ position.h:1675:71: error: stray '#' in program 1675 | #define ep_square() (pos->st->epSquare) | ^ position.h:1675:155: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1675 | #define ep_square() (pos->st->epSquare) | ^ position.h:1675:168: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1675 | #define ep_square() (pos->st->epSquare) | ^ position.h:1679:71: error: stray '#' in program 1679 | #define is_empty(s) (!piece_on(s)) | ^ position.h:1683:71: error: stray '#' in program 1683 | #ifdef PEDANTIC | ^ position.h:1687:71: error: stray '#' in program 1687 | #define piece_count(c,p) (pos->pieceCount[8 (c) + (p)] - (8(c)+(p)) 16) | ^ position.h:1687:195: error: expected expression before '<' token 1687 | #define piece_count(c,p) (pos->pieceCount[8 (c) + (p)] - (8(c)+(p)) 16) | ^ position.h:1691:71: error: stray '#' in program 1691 | #define piece_list(c,p) (&pos->pieceList[16 (8 (c) + (p))]) | ^ position.h:1691:183: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1691 | #define piece_list(c,p) (&pos->pieceList[16 (8 (c) + (p))]) | ^ position.h:1691:198: error: expected expression before '<' token 1691 | #define piece_list(c,p) (&pos->pieceList[16 (8 (c) + (p))]) | ^ position.h:1695:71: error: stray '#' in program 1695 | #define square_of(c,p) (pos->pieceList[16 (8 (c) + (p))]) | ^ position.h:1695:192: error: expected expression before '<' token 1695 | #define square_of(c,p) (pos->pieceList[16 (8 (c) + (p))]) | ^ position.h:1699:71: error: stray '#' in program 1699 | #define loop_through_pieces(c,p,s) \ | ^ position.h:1699:185: error: stray '\' in program 1699 | #define loop_through_pieces(c,p,s) \ | ^ position.h:1703:163: error: stray '\' in program 1703 | const uint8_t pl = piece_list(c,p); \ | ^ position.h:1703:164: error: expected identifier or '(' before '<' token 1703 | const uint8_t pl = piece_list(c,p); \ | ^ position.h:1711:71: error: stray '#' in program 1711 | #else | ^ position.h:1715:71: error: stray '#' in program 1715 | #define piece_count(c,p) (popcount(pieces_cp(c, p))) | ^ position.h:1719:71: error: stray '#' in program 1719 | #define square_of(c,p) (lsb(pieces_cp(c,p))) | ^ position.h:1723:71: error: stray '#' in program 1723 | #define loop_through_pieces(c,p,s) \ | ^ position.h:1723:185: error: stray '\' in program 1723 | #define loop_through_pieces(c,p,s) \ | ^ position.h:1727:104: error: stray '\' in program 1727 | Bitboard pcs = pieces_cp(c,p); \ | ^ position.h:1727:105: error: expected identifier or '(' before '<' token 1727 | Bitboard pcs = pieces_cp(c,p); \ | ^ position.h:1731:115: error: expected identifier or '(' before '&' token 1731 | while (pcs && (s = pop_lsb(&pcs), 1)) | ^ position.h:1731:123: error: expected ')' before '=' token 1731 | while (pcs && (s = pop_lsb(&pcs), 1)) | ^~ | ) position.h:1735:71: error: stray '#' in program 1735 | #endif | ^ position.h:1739:71: error: stray '#' in program 1739 | #define piece_count_mk(c, p) (((pos_material_key()) >> (20 (c) + 4 (p) + 4)) & 15) | ^ position.h:1739:206: error: expected identifier or '(' before '&' token 1739 | #define piece_count_mk(c, p) (((pos_material_key()) >> (20 (c) + 4 (p) + 4)) & 15) | ^ position.h:1739:212: error: expected identifier or '(' before '<' token 1739 | #define piece_count_mk(c, p) (((pos_material_key()) >> (20 (c) + 4 (p) + 4)) & 15) | ^ position.h:1739:324: error: expected identifier or '(' before '<' token 1739 | #define piece_count_mk(c, p) (((pos_material_key()) >> (20 (c) + 4 (p) + 4)) & 15) | ^ position.h:1752:71: error: stray '#' in program 1752 | #define can_castle_cr(cr) (pos->st->castlingRights & (cr)) | ^ position.h:1752:187: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1752 | #define can_castle_cr(cr) (pos->st->castlingRights & (cr)) | ^ position.h:1752:207: error: expected '=', ',', ';', 'asm' or 'attribute' before '&' token 1752 | #define can_castle_cr(cr) (pos->st->castlingRights & (cr)) | ^ position.h:1752:217: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1752 | #define can_castle_cr(cr) (pos->st->castlingRights & (cr)) | ^ position.h:1756:71: error: stray '#' in program 1756 | #define can_castle_c(c) can_castle_cr((WHITE_OO | WHITE_OOO) << (2 (c))) | ^ position.h:1756:215: error: expected identifier or '(' before '&' token 1756 | #define can_castle_c(c) can_castle_cr((WHITE_OO | WHITE_OOO) << (2 (c))) | ^ position.h:1756:221: error: expected identifier or '(' before '<' token 1756 | #define can_castle_c(c) can_castle_cr((WHITE_OO | WHITE_OOO) << (2 * (c))) | ^ position.h:1760:71: error: stray '#' in program 1760 | #define can_castle_any() (pos->st->castlingRights) | ^ position.h:1760:160: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1760 | #define can_castle_any() (pos->st->castlingRights) | ^ position.h:1760:179: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1760 | #define can_castle_any() (pos->st->castlingRights) | ^ position.h:1764:71: error: stray '#' in program 1764 | #ifdef PEDANTIC | ^ position.h:1768:71: error: stray '#' in program 1768 | #define castling_impeded(cr) (pieces() & pos->castlingPath[cr]) | ^ position.h:1768:198: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1768 | #define castling_impeded(cr) (pieces() & pos->castlingPath[cr]) | ^ position.h:1768:216: error: 'cr' undeclared here (not in a function) 1768 | #define castling_impeded(cr) (pieces() & pos->castlingPath[cr]) | ^~ position.h:1768:219: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1768 | #define castling_impeded(cr) (pieces() & pos->castlingPath[cr]) | ^ position.h:1772:71: error: stray '#' in program 1772 | #define castling_rook_square(cr) (pos->castlingRookSquare[cr]) | ^ position.h:1772:214: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1772 | #define castling_rook_square(cr) (pos->castlingRookSquare[cr]) | ^ position.h:1776:71: error: stray '#' in program 1776 | #else | ^ position.h:1780:71: error: stray '#' in program 1780 | #define castling_impeded(cr) (pieces() & CastlingPath[cr]) | ^ position.h:1780:211: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1780 | #define castling_impeded(cr) (pieces() & CastlingPath[cr]) | ^ position.h:1784:71: error: stray '#' in program 1784 | #define castling_rook_square(cr) (CastlingRookSquare[cr]) | ^ position.h:1788:71: error: stray '#' in program 1788 | #endif | ^ position.h:1801:71: error: stray '#' in program 1801 | #define pos_checkers() (pos->st->checkersBB) | ^ position.h:1801:158: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1801 | #define pos_checkers() (pos->st->checkersBB) | ^ position.h:1801:173: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1801 | #define pos_checkers() (pos->st->checkersBB) | ^ position.h:1814:71: error: stray '#' in program 1814 | #define attackers_to_occ(s,occ) pos_attackers_to_occ(pos,s,occ) | ^ position.h:1818:71: error: stray '#' in program 1818 | #define attackers_to(s) attackers_to_occ(s,pieces()) | ^ position.h:1822:71: error: stray '#' in program 1822 | #define attacks_from_pawn(s,c) (PawnAttacks[c][s]) | ^ position.h:1826:71: error: stray '#' in program 1826 | #define attacks_from_knight(s) (PseudoAttacks[KNIGHT][s]) | ^ position.h:1830:71: error: stray '#' in program 1830 | #define attacks_from_bishop(s) attacks_bb_bishop(s, pieces()) | ^ position.h:1834:71: error: stray '#' in program 1834 | #define attacks_from_rook(s) attacks_bb_rook(s, pieces()) | ^ position.h:1838:71: error: stray '#' in program 1838 | #define attacks_from_queen(s) (attacks_from_bishop(s)|attacks_from_rook(s)) | ^ position.h:1842:71: error: stray '#' in program 1842 | #define attacks_from_king(s) (PseudoAttacks[KING][s]) | ^ position.h:1846:71: error: stray '#' in program 1846 | #define attacks_from(pc,s) attacks_bb(pc,s,pieces()) | ^ position.h:1859:71: error: stray '#' in program 1859 | #define moved_piece(m) (piece_on(from_sq(m))) | ^ position.h:1863:71: error: stray '#' in program 1863 | #define captured_piece() (pos->st->capturedPiece) | ^ position.h:1863:160: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1863 | #define captured_piece() (pos->st->capturedPiece) | ^ position.h:1863:178: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1863 | #define captured_piece() (pos->st->capturedPiece) | ^ position.h:1876:71: error: stray '#' in program 1876 | #define pos_key() (pos->st->key) | ^ position.h:1876:153: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1876 | #define pos_key() (pos->st->key) | ^ position.h:1876:161: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1876 | #define pos_key() (pos->st->key) | ^ position.h:1880:71: error: stray '#' in program 1880 | #define pos_material_key() (pos->st->materialKey) | ^ position.h:1880:162: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1880 | #define pos_material_key() (pos->st->materialKey) | ^ position.h:1880:178: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1880 | #define pos_material_key() (pos->st->materialKey) | ^ position.h:1884:71: error: stray '#' in program 1884 | #define pos_pawn_key() (pos->st->pawnKey) | ^ position.h:1884:158: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1884 | #define pos_pawn_key() (pos->st->pawnKey) | ^ position.h:1884:170: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1884 | #define pos_pawn_key() (pos->st->pawnKey) | ^ position.h:1897:71: error: stray '#' in program 1897 | #define pos_stm() (pos->sideToMove) | ^ position.h:1897:161: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1897 | #define pos_stm() (pos->sideToMove) | ^ position.h:1901:71: error: stray '#' in program 1901 | #define pos_game_ply() (pos->gamePly) | ^ position.h:1901:163: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1901 | #define pos_game_ply() (pos->gamePly) | ^ position.h:1905:71: error: stray '#' in program 1905 | #define is_chess960() (pos->chess960) | ^ position.h:1905:163: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1905 | #define is_chess960() (pos->chess960) | ^ position.h:1909:71: error: stray '#' in program 1909 | #define pos_nodes_searched() (pos->nodes) | ^ position.h:1909:167: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1909 | #define pos_nodes_searched() (pos->nodes) | ^ position.h:1913:71: error: stray '#' in program 1913 | #define pos_rule50_count() (pos->st->rule50) | ^ position.h:1913:162: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1913 | #define pos_rule50_count() (pos->st->rule50) | ^ position.h:1913:173: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1913 | #define pos_rule50_count() (pos->st->rule50) | ^ position.h:1917:71: error: stray '#' in program 1917 | #define pos_psq_score() (pos->st->psq) | ^ position.h:1917:159: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1917 | #define pos_psq_score() (pos->st->psq) | ^ position.h:1917:167: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1917 | #define pos_psq_score() (pos->st->psq) | ^ position.h:1921:71: error: stray '#' in program 1921 | #define pos_non_pawn_material(c) (pos->st->nonPawnMaterial[c]) | ^ position.h:1921:194: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1921 | #define pos_non_pawn_material(c) (pos->st->nonPawnMaterial[c]) | ^ position.h:1921:217: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1921 | #define pos_non_pawn_material(c) (pos->st->nonPawnMaterial[c]) | ^ position.h:1925:71: error: stray '#' in program 1925 | #define pos_pawns_only() (!pos->st->nonPawn) | ^ position.h:1925:161: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1925 | #define pos_pawns_only() (!pos->st->nonPawn) | ^ position.h:1925:173: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1925 | #define pos_pawns_only() (!pos->st->nonPawn) | ^ position.h:1946:72: error: expected identifier or '(' before '<' token 1946 | } | ^ position.h:1967:72: error: expected identifier or '(' before '<' token 1967 | } | ^ position.h:1988:72: error: expected identifier or '(' before '<' token 1988 | } | ^ position.h:2013:72: error: expected identifier or '(' before '<' token 2013 | } | ^ position.h:2030:71: error: stray '#' in program 2030 | #if 0 | ^ position.h:2046:71: error: stray '#' in program 2046 | #elif 0 | ^ position.h:2062:71: error: stray '#' in program 2062 | #else | ^ position.h:2082:71: error: stray '#' in program 2082 | #endif | ^ position.h:2086:72: error: expected identifier or '(' before '<' token 2086 | } | ^ position.h:2111:72: error: expected identifier or '(' before '<' token 2111 | } | ^ position.h:2140:72: error: expected identifier or '(' before '<' token 2140 | } | ^ position.h:2169:72: error: expected identifier or '(' before '<' token 2169 | } | ^ position.h:2178:158: error: expected identifier or '(' before '<' token 2178 | void pos_set_check_info(Pos *pos); | ^ position.h:2221:72: error: expected identifier or '(' before '<' token 2221 | } | ^ position.h:2234:71: error: stray '#' in program 2234 | #if 0 | ^ position.h:2354:72: error: expected identifier or '(' before '<' token 2354 | } | ^ position.h:2358:71: error: stray '#' in program 2358 | #endif | ^ position.h:2416:72: error: expected identifier or '(' before '<' token 2416 | } | ^ position.h:2425:71: error: stray '#' in program 2425 | #endif | ^ position.h:2460:12: warning: missing terminating ' character 2460 |
    | ^ position.h:2460:12: error: missing terminating ' character 2460 |
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ position.h:2481:39: error: expected identifier or '(' before numeric constant 2481 |
  • © 2020 GitHub, Inc.
  • | ^~~~ In file included from benchmark.c:27: position.h:2514:12: error: stray '\342' in program 2514 | You can’t perform that action at this time. | ^ position.h:2514:13: error: stray '\200' in program 2514 | You can’t perform that action at this time. | ^ position.h:2514:14: error: stray '\231' in program 2514 | You can’t perform that action at this time. | ^ In file included from search.h:25, from benchmark.c:28: position.h:32:37: error: stray '\302' in program 32 | Cfish/position.h at master · syzygy1/Cfish · GitHub | ^ position.h:32:38: error: stray '\267' in program 32 | Cfish/position.h at master · syzygy1/Cfish · GitHub | ^ position.h:32:54: error: stray '\302' in program 32 | Cfish/position.h at master · syzygy1/Cfish · GitHub | ^ position.h:32:55: error: stray '\267' in program 32 | Cfish/position.h at master · syzygy1/Cfish · GitHub | ^ In file included from search.h:25, from benchmark.c:28: position.h:150:13: error: expected '=', ',', ';', 'asm' or 'attribute' before '<' token 150 | | ^ In file included from search.h:25, from benchmark.c:28: position.h:176:267: error: expected identifier or '(' before '<' token 176 | Features | ^ position.h:189:332: error: expected identifier or '(' before '<' token 189 |
  • Customer stories
  • | ^ position.h:190:308: error: expected identifier or '(' before '<' token 190 |
  • Security
  • | ^ position.h:210:299: error: expected identifier or '(' before '<' token 210 |
  • Explore GitHub
  • | ^ position.h:213:123: error: expected '=', ',', ';', 'asm' or 'attribute' before '<' token 213 |

    Learn & contribute

    | ^ position.h:246:262: error: expected identifier or '(' before '<' token 246 | Plans | ^ position.h:254:312: error: expected identifier or '(' before '<' token 254 |
  • Nonprofit
  • | ^ position.h:255:335: error: expected identifier or '(' before '<' token 255 |
  • Education
  • | ^ position.h:273:10: warning: missing terminating ' character 273 |
    | ^ position.h:632:16: error: missing terminating ' character 632 |
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from search.h:25, from benchmark.c:28: position.h:698:7: error: expected identifier or '(' before '<' token 698 |
    | ^ position.h:839:70: error: stray '#' in program 839 | #ifndef POSITION_H | ^ position.h:843:70: error: stray '#' in program 843 | #define POSITION_H | ^ position.h:852:70: error: stray '#' in program 852 | #include <assert.h> | ^ position.h:852:149: error: expected identifier or '(' before '<' token 852 | #include <assert.h> | ^ position.h:852:189: error: expected identifier or '(' before '<' token 852 | #include <assert.h> | ^ position.h:856:70: error: stray '#' in program 856 | #ifndef _WIN32 | ^ position.h:860:70: error: stray '#' in program 860 | #include <pthread.h> | ^ position.h:860:149: error: expected identifier or '(' before '<' token 860 | #include <pthread.h> | ^ position.h:860:190: error: expected identifier or '(' before '<' token 860 | #include <pthread.h> | ^ position.h:864:70: error: stray '#' in program 864 | #endif | ^ position.h:868:70: error: stray '#' in program 868 | #include <stdatomic.h> | ^ position.h:868:149: error: expected identifier or '(' before '<' token 868 | #include <stdatomic.h> | ^ position.h:868:192: error: expected identifier or '(' before '<' token 868 | #include <stdatomic.h> | ^ position.h:872:70: error: stray '#' in program 872 | #include <stddef.h> // For offsetof() | ^ position.h:872:149: error: expected identifier or '(' before '<' token 872 | #include <stddef.h> // For offsetof() | ^ position.h:872:189: error: expected identifier or '(' before '<' token 872 | #include <stddef.h> // For offsetof() | ^ position.h:876:70: error: stray '#' in program 876 | #include <string.h> | ^ position.h:876:149: error: expected identifier or '(' before '<' token 876 | #include <string.h> | ^ position.h:876:189: error: expected identifier or '(' before '<' token 876 | #include <string.h> | ^ position.h:885:70: error: stray '#' in program 885 | #include "bitboard.h" | ^ position.h:885:151: error: expected identifier or '(' before '<' token 885 | #include "bitboard.h" | ^ position.h:885:195: error: expected identifier or '(' before '<' token 885 | #include "bitboard.h" | ^ position.h:889:70: error: stray '#' in program 889 | #include "types.h" | ^ position.h:889:151: error: expected identifier or '(' before '<' token 889 | #include "types.h" | ^ position.h:889:192: error: expected identifier or '(' before '<' token 889 | #include "types.h" | ^ position.h:898:180: error: expected identifier or '(' before '<' token 898 | extern const char PieceToChar[]; | ^ position.h:902:145: error: expected identifier or '(' before '<' token 902 | extern Key matKey[16]; | ^ position.h:931:71: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic] 931 | }; | ^ position.h:931:72: error: expected identifier or '(' before '<' token 931 | }; | ^ position.h:940:144: error: expected identifier or '(' before '<' token 940 | extern struct Zob zob; | ^ position.h:949:170: error: expected identifier or '(' before '<' token 949 | void psqt_init(void); | ^ position.h:953:169: error: expected identifier or '(' before '<' token 953 | void zob_init(void); | ^ position.h:1227:72: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic] 1227 | }; | ^ position.h:1227:73: error: expected identifier or '(' before '<' token 1227 | }; | ^ position.h:1236:150: error: expected identifier or '(' before '<' token 1236 | typedef struct Stack Stack; | ^ position.h:1245:71: error: stray '#' in program 1245 | #define StateCopySize offsetof(Stack, capturedPiece) | ^ position.h:1249:71: error: stray '#' in program 1249 | #define StateSize offsetof(Stack, pv) | ^ position.h:1253:71: error: stray '#' in program 1253 | #define SStackBegin(st) (&st.pv) | ^ position.h:1253:182: error: expected '=', ',', ';', 'asm' or 'attribute' before '.' token 1253 | #define SStackBegin(st) (&st.pv) | ^ position.h:1257:71: error: stray '#' in program 1257 | #define SStackSize (offsetof(Stack, countermove) - offsetof(Stack, pv)) | ^ position.h:1324:71: error: stray '#' in program 1324 | #ifdef PEDANTIC | ^ position.h:1352:71: error: stray '#' in program 1352 | #endif | ^ position.h:1488:71: error: stray '#' in program 1488 | #ifndef _WIN32 | ^ position.h:1504:71: error: stray '#' in program 1504 | #else | ^ position.h:1516:71: error: stray '#' in program 1516 | #endif | ^ position.h:1520:72: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic] 1520 | }; | ^ position.h:1520:73: error: expected identifier or '(' before '<' token 1520 | }; | ^ position.h:1533:226: error: expected identifier or '(' before '<' token 1533 | void pos_set(Pos pos, char fen, int isChess960); | ^ position.h:1537:216: error: expected identifier or '(' before '<' token 1537 | void pos_fen(const Pos pos, char fen); | ^ position.h:1541:149: error: expected identifier or '(' before '<' token 1541 | void print_pos(Pos pos); | ^ position.h:1558:120: error: expected identifier or '(' before '<' token 1558 | Bitboard pinners); | ^ position.h:1567:192: error: expected identifier or '(' before '<' token 1567 | PURE int is_legal(const Pos pos, Move m); | ^ position.h:1571:199: error: expected identifier or '(' before '<' token 1571 | PURE int is_pseudo_legal(const Pos pos, Move m); | ^ position.h:1575:214: error: expected identifier or '(' before '<' token 1575 | PURE int gives_check_special(const Pos pos, Stack st, Move m); | ^ position.h:1588:197: error: expected identifier or '(' before '<' token 1588 | void do_move(Pos pos, Move m, int givesCheck); | ^ position.h:1592:157: error: expected identifier or '(' before '<' token 1592 | void undo_move(Pos pos, Move m); | ^ position.h:1596:152: error: expected identifier or '(' before '<' token 1596 | void do_null_move(Pos pos); | ^ position.h:1600:161: error: expected identifier or '(' before '<' token 1600 | INLINE void undo_null_move(Pos pos); | ^ position.h:1613:168: error: expected identifier or '(' before '<' token 1613 | PURE Value see_sign(const Pos pos, Move m); | ^ position.h:1617:205: error: expected identifier or '(' before '<' token 1617 | PURE Value see_test(const Pos pos, Move m, int value); | ^ position.h:1626:167: error: expected identifier or '(' before '<' token 1626 | PURE Key key_after(const Pos pos, Move m); | ^ position.h:1630:183: error: expected identifier or '(' before '<' token 1630 | PURE int is_draw(const Pos pos); | ^ position.h:1634:226: error: expected identifier or '(' before '<' token 1634 | PURE bool has_game_cycle(const Pos *pos, int ply); | ^ position.h:1647:71: error: stray '#' in program 1647 | #define pieces() (pos->byTypeBB[0]) | ^ position.h:1647:159: error: expected expression before '<' token 1647 | #define pieces() (pos->byTypeBB[0]) | ^ position.h:1651:71: error: stray '#' in program 1651 | #define pieces_p(p) (pos->byTypeBB[p]) | ^ position.h:1651:190: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1651 | #define pieces_p(p) (pos->byTypeBB[p]) | ^ position.h:1655:71: error: stray '#' in program 1655 | #define pieces_pp(p1,p2) (pos->byTypeBB[p1] | pos->byTypeBB[p2]) | ^ position.h:1655:197: error: expected '=', ',', ';', 'asm' or 'attribute' before '|' token 1655 | #define pieces_pp(p1,p2) (pos->byTypeBB[p1] | pos->byTypeBB[p2]) | ^ position.h:1655:219: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1655 | #define pieces_pp(p1,p2) (pos->byTypeBB[p1] | pos->byTypeBB[p2]) | ^ position.h:1659:71: error: stray '#' in program 1659 | #define pieces_c(c) (pos->byColorBB[c]) | ^ position.h:1659:191: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1659 | #define pieces_c(c) (pos->byColorBB[c]) | ^ position.h:1663:71: error: stray '#' in program 1663 | #define pieces_cp(c,p) (pieces_p(p) & pieces_c(c)) | ^ position.h:1663:192: error: expected identifier or '(' before '<' token 1663 | #define pieces_cp(c,p) (pieces_p(p) & pieces_c(c)) | ^ position.h:1667:71: error: stray '#' in program 1667 | #define pieces_cpp(c,p1,p2) (pieces_pp(p1,p2) & pieces_c(c)) | ^ position.h:1667:202: error: expected identifier or '(' before '<' token 1667 | #define pieces_cpp(c,p1,p2) (pieces_pp(p1,p2) & pieces_c(c)) | ^ position.h:1671:71: error: stray '#' in program 1671 | #define piece_on(s) (pos->board[s]) | ^ position.h:1671:187: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1671 | #define piece_on(s) (pos->board[s]) | ^ position.h:1675:71: error: stray '#' in program 1675 | #define ep_square() (pos->st->epSquare) | ^ position.h:1675:155: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1675 | #define ep_square() (pos->st->epSquare) | ^ position.h:1675:168: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1675 | #define ep_square() (pos->st->epSquare) | ^ position.h:1679:71: error: stray '#' in program 1679 | #define is_empty(s) (!piece_on(s)) | ^ position.h:1683:71: error: stray '#' in program 1683 | #ifdef PEDANTIC | ^ position.h:1687:71: error: stray '#' in program 1687 | #define piece_count(c,p) (pos->pieceCount[8 (c) + (p)] - (8(c)+(p)) 16) | ^ position.h:1687:195: error: expected expression before '<' token 1687 | #define piece_count(c,p) (pos->pieceCount[8 (c) + (p)] - (8(c)+(p)) 16) | ^ position.h:1691:71: error: stray '#' in program 1691 | #define piece_list(c,p) (&pos->pieceList[16 (8 (c) + (p))]) | ^ position.h:1691:183: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1691 | #define piece_list(c,p) (&pos->pieceList[16 (8 (c) + (p))]) | ^ position.h:1691:198: error: expected expression before '<' token 1691 | #define piece_list(c,p) (&pos->pieceList[16 (8 (c) + (p))]) | ^ position.h:1695:71: error: stray '#' in program 1695 | #define square_of(c,p) (pos->pieceList[16 (8 (c) + (p))]) | ^ position.h:1695:192: error: expected expression before '<' token 1695 | #define square_of(c,p) (pos->pieceList[16 (8 (c) + (p))]) | ^ position.h:1699:71: error: stray '#' in program 1699 | #define loop_through_pieces(c,p,s) \ | ^ position.h:1699:185: error: stray '\' in program 1699 | #define loop_through_pieces(c,p,s) \ | ^ position.h:1703:163: error: stray '\' in program 1703 | const uint8_t pl = piece_list(c,p); \ | ^ position.h:1703:164: error: expected identifier or '(' before '<' token 1703 | const uint8_t pl = piece_list(c,p); \ | ^ position.h:1711:71: error: stray '#' in program 1711 | #else | ^ position.h:1715:71: error: stray '#' in program 1715 | #define piece_count(c,p) (popcount(pieces_cp(c, p))) | ^ position.h:1719:71: error: stray '#' in program 1719 | #define square_of(c,p) (lsb(pieces_cp(c,p))) | ^ position.h:1723:71: error: stray '#' in program 1723 | #define loop_through_pieces(c,p,s) \ | ^ position.h:1723:185: error: stray '\' in program 1723 | #define loop_through_pieces(c,p,s) \ | ^ position.h:1727:104: error: stray '\' in program 1727 | Bitboard pcs = pieces_cp(c,p); \ | ^ position.h:1727:105: error: expected identifier or '(' before '<' token 1727 | Bitboard pcs = pieces_cp(c,p); \ | ^ position.h:1731:115: error: expected identifier or '(' before '&' token 1731 | while (pcs && (s = pop_lsb(&pcs), 1)) | ^ position.h:1731:123: error: expected ')' before '=' token 1731 | while (pcs && (s = pop_lsb(&pcs), 1)) | ^~ | ) position.h:1735:71: error: stray '#' in program 1735 | #endif | ^ position.h:1739:71: error: stray '#' in program 1739 | #define piece_count_mk(c, p) (((pos_material_key()) >> (20 (c) + 4 (p) + 4)) & 15) | ^ position.h:1739:206: error: expected identifier or '(' before '&' token 1739 | #define piece_count_mk(c, p) (((pos_material_key()) >> (20 (c) + 4 (p) + 4)) & 15) | ^ position.h:1739:212: error: expected identifier or '(' before '<' token 1739 | #define piece_count_mk(c, p) (((pos_material_key()) >> (20 (c) + 4 (p) + 4)) & 15) | ^ position.h:1739:324: error: expected identifier or '(' before '<' token 1739 | #define piece_count_mk(c, p) (((pos_material_key()) >> (20 (c) + 4 (p) + 4)) & 15) | ^ position.h:1752:71: error: stray '#' in program 1752 | #define can_castle_cr(cr) (pos->st->castlingRights & (cr)) | ^ position.h:1752:187: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1752 | #define can_castle_cr(cr) (pos->st->castlingRights & (cr)) | ^ position.h:1752:207: error: expected '=', ',', ';', 'asm' or 'attribute' before '&' token 1752 | #define can_castle_cr(cr) (pos->st->castlingRights & (cr)) | ^ position.h:1752:217: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1752 | #define can_castle_cr(cr) (pos->st->castlingRights & (cr)) | ^ position.h:1756:71: error: stray '#' in program 1756 | #define can_castle_c(c) can_castle_cr((WHITE_OO | WHITE_OOO) << (2 (c))) | ^ position.h:1756:215: error: expected identifier or '(' before '&' token 1756 | #define can_castle_c(c) can_castle_cr((WHITE_OO | WHITE_OOO) << (2 (c))) | ^ position.h:1756:221: error: expected identifier or '(' before '<' token 1756 | #define can_castle_c(c) can_castle_cr((WHITE_OO | WHITE_OOO) << (2 * (c))) | ^ position.h:1760:71: error: stray '#' in program 1760 | #define can_castle_any() (pos->st->castlingRights) | ^ position.h:1760:160: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1760 | #define can_castle_any() (pos->st->castlingRights) | ^ position.h:1760:179: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1760 | #define can_castle_any() (pos->st->castlingRights) | ^ position.h:1764:71: error: stray '#' in program 1764 | #ifdef PEDANTIC | ^ position.h:1768:71: error: stray '#' in program 1768 | #define castling_impeded(cr) (pieces() & pos->castlingPath[cr]) | ^ position.h:1768:198: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1768 | #define castling_impeded(cr) (pieces() & pos->castlingPath[cr]) | ^ position.h:1768:219: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1768 | #define castling_impeded(cr) (pieces() & pos->castlingPath[cr]) | ^ position.h:1772:71: error: stray '#' in program 1772 | #define castling_rook_square(cr) (pos->castlingRookSquare[cr]) | ^ position.h:1772:214: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1772 | #define castling_rook_square(cr) (pos->castlingRookSquare[cr]) | ^ position.h:1776:71: error: stray '#' in program 1776 | #else | ^ position.h:1780:71: error: stray '#' in program 1780 | #define castling_impeded(cr) (pieces() & CastlingPath[cr]) | ^ position.h:1780:211: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1780 | #define castling_impeded(cr) (pieces() & CastlingPath[cr]) | ^ position.h:1784:71: error: stray '#' in program 1784 | #define castling_rook_square(cr) (CastlingRookSquare[cr]) | ^ position.h:1788:71: error: stray '#' in program 1788 | #endif | ^ position.h:1801:71: error: stray '#' in program 1801 | #define pos_checkers() (pos->st->checkersBB) | ^ position.h:1801:158: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1801 | #define pos_checkers() (pos->st->checkersBB) | ^ position.h:1801:173: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1801 | #define pos_checkers() (pos->st->checkersBB) | ^ position.h:1814:71: error: stray '#' in program 1814 | #define attackers_to_occ(s,occ) pos_attackers_to_occ(pos,s,occ) | ^ position.h:1818:71: error: stray '#' in program 1818 | #define attackers_to(s) attackers_to_occ(s,pieces()) | ^ position.h:1822:71: error: stray '#' in program 1822 | #define attacks_from_pawn(s,c) (PawnAttacks[c][s]) | ^ position.h:1826:71: error: stray '#' in program 1826 | #define attacks_from_knight(s) (PseudoAttacks[KNIGHT][s]) | ^ position.h:1830:71: error: stray '#' in program 1830 | #define attacks_from_bishop(s) attacks_bb_bishop(s, pieces()) | ^ position.h:1834:71: error: stray '#' in program 1834 | #define attacks_from_rook(s) attacks_bb_rook(s, pieces()) | ^ position.h:1838:71: error: stray '#' in program 1838 | #define attacks_from_queen(s) (attacks_from_bishop(s)|attacks_from_rook(s)) | ^ position.h:1842:71: error: stray '#' in program 1842 | #define attacks_from_king(s) (PseudoAttacks[KING][s]) | ^ position.h:1846:71: error: stray '#' in program 1846 | #define attacks_from(pc,s) attacks_bb(pc,s,pieces()) | ^ position.h:1859:71: error: stray '#' in program 1859 | #define moved_piece(m) (piece_on(from_sq(m))) | ^ position.h:1863:71: error: stray '#' in program 1863 | #define captured_piece() (pos->st->capturedPiece) | ^ position.h:1863:160: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1863 | #define captured_piece() (pos->st->capturedPiece) | ^ position.h:1863:178: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1863 | #define captured_piece() (pos->st->capturedPiece) | ^ position.h:1876:71: error: stray '#' in program 1876 | #define pos_key() (pos->st->key) | ^ position.h:1876:153: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1876 | #define pos_key() (pos->st->key) | ^ position.h:1876:161: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1876 | #define pos_key() (pos->st->key) | ^ position.h:1880:71: error: stray '#' in program 1880 | #define pos_material_key() (pos->st->materialKey) | ^ position.h:1880:162: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1880 | #define pos_material_key() (pos->st->materialKey) | ^ position.h:1880:178: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1880 | #define pos_material_key() (pos->st->materialKey) | ^ position.h:1884:71: error: stray '#' in program 1884 | #define pos_pawn_key() (pos->st->pawnKey) | ^ position.h:1884:158: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1884 | #define pos_pawn_key() (pos->st->pawnKey) | ^ position.h:1884:170: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1884 | #define pos_pawn_key() (pos->st->pawnKey) | ^ position.h:1897:71: error: stray '#' in program 1897 | #define pos_stm() (pos->sideToMove) | ^ position.h:1897:161: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1897 | #define pos_stm() (pos->sideToMove) | ^ position.h:1901:71: error: stray '#' in program 1901 | #define pos_game_ply() (pos->gamePly) | ^ position.h:1901:163: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1901 | #define pos_game_ply() (pos->gamePly) | ^ position.h:1905:71: error: stray '#' in program 1905 | #define is_chess960() (pos->chess960) | ^ position.h:1905:163: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1905 | #define is_chess960() (pos->chess960) | ^ position.h:1909:71: error: stray '#' in program 1909 | #define pos_nodes_searched() (pos->nodes) | ^ position.h:1909:167: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1909 | #define pos_nodes_searched() (pos->nodes) | ^ position.h:1913:71: error: stray '#' in program 1913 | #define pos_rule50_count() (pos->st->rule50) | ^ position.h:1913:162: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1913 | #define pos_rule50_count() (pos->st->rule50) | ^ position.h:1913:173: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1913 | #define pos_rule50_count() (pos->st->rule50) | ^ position.h:1917:71: error: stray '#' in program 1917 | #define pos_psq_score() (pos->st->psq) | ^ position.h:1917:159: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1917 | #define pos_psq_score() (pos->st->psq) | ^ position.h:1917:167: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1917 | #define pos_psq_score() (pos->st->psq) | ^ position.h:1921:71: error: stray '#' in program 1921 | #define pos_non_pawn_material(c) (pos->st->nonPawnMaterial[c]) | ^ position.h:1921:194: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1921 | #define pos_non_pawn_material(c) (pos->st->nonPawnMaterial[c]) | ^ position.h:1921:217: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1921 | #define pos_non_pawn_material(c) (pos->st->nonPawnMaterial[c]) | ^ position.h:1925:71: error: stray '#' in program 1925 | #define pos_pawns_only() (!pos->st->nonPawn) | ^ position.h:1925:161: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1925 | #define pos_pawns_only() (!pos->st->nonPawn) | ^ position.h:1925:173: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1925 | #define pos_pawns_only() (!pos->st->nonPawn) | ^ position.h:1946:72: error: expected identifier or '(' before '<' token 1946 | } | ^ position.h:1967:72: error: expected identifier or '(' before '<' token 1967 | } | ^ position.h:1988:72: error: expected identifier or '(' before '<' token 1988 | } | ^ position.h:2013:72: error: expected identifier or '(' before '<' token 2013 | } | ^ position.h:2030:71: error: stray '#' in program 2030 | #if 0 | ^ position.h:2046:71: error: stray '#' in program 2046 | #elif 0 | ^ position.h:2062:71: error: stray '#' in program 2062 | #else | ^ position.h:2082:71: error: stray '#' in program 2082 | #endif | ^ position.h:2086:72: error: expected identifier or '(' before '<' token 2086 | } | ^ position.h:2111:72: error: expected identifier or '(' before '<' token 2111 | } | ^ position.h:2140:72: error: expected identifier or '(' before '<' token 2140 | } | ^ position.h:2169:72: error: expected identifier or '(' before '<' token 2169 | } | ^ position.h:2178:158: error: expected identifier or '(' before '<' token 2178 | void pos_set_check_info(Pos *pos); | ^ position.h:2221:72: error: expected identifier or '(' before '<' token 2221 | } | ^ position.h:2234:71: error: stray '#' in program 2234 | #if 0 | ^ position.h:2354:72: error: expected identifier or '(' before '<' token 2354 | } | ^ position.h:2358:71: error: stray '#' in program 2358 | #endif | ^ position.h:2416:72: error: expected identifier or '(' before '<' token 2416 | } | ^ position.h:2425:71: error: stray '#' in program 2425 | #endif | ^ position.h:2460:12: warning: missing terminating ' character 2460 |
    | ^ position.h:2460:12: error: missing terminating ' character 2460 |
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ position.h:2481:39: error: expected identifier or '(' before numeric constant 2481 |
  • © 2020 GitHub, Inc.
  • | ^~~~ In file included from search.h:25, from benchmark.c:28: position.h:2514:12: error: stray '\342' in program 2514 | You can’t perform that action at this time. | ^ position.h:2514:13: error: stray '\200' in program 2514 | You can’t perform that action at this time. | ^ position.h:2514:14: error: stray '\231' in program 2514 | You can’t perform that action at this time. | ^ In file included from search.h:26, from benchmark.c:28: thread.h:51:2: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic] 51 | }; | ^ benchmark.c: In function 'benchmark': benchmark.c:135:5: warning: implicit declaration of function 'pos_fen'; did you mean 'popen'? [-Wimplicit-function-declaration] 135 | pos_fen(current, fens[0]); | ^~~ | popen benchmark.c:162:7: error: storage size of 'pos' isn't known 162 | Pos pos; | ^~~ benchmark.c:162:7: warning: unused variable 'pos' [-Wunused-variable] make[2]: [: benchmark.o] Fehler 1 make[1]: [Makefile:593: gcc-profile-make] Fehler 2 make: *** [Makefile:505: profile-build] Fehler 2

    ghost commented 4 years ago

    Can you set LANG=en_US.UTF-8 in environment variables and test if it solves it?

    caissist commented 4 years ago

    Can you set LANG=en_US.UTF-8 in environment variables and test if it solves it?

    1. I compiled the previous source version successfully on same system, with same compiler, just a few compiler updates downloaded.
    2. I had a look into system environment variables but couldn't find that issue.

    Caissafan

    ghost commented 4 years ago

    The problem is GCC here somehow treats unicode characters as ASCII. type ' export LANG=en_US.UTF-8 ' before compilation and try again.

    caissist commented 4 years ago

    The problem is GCC here somehow treats unicode characters as ASCII. type ' export LANG=en_US.UTF-8 ' before compilation and try again.

    I did that in the MSYS2 MinGW64 console window (is that correct?) without any status message and tried again but failed renewed.

    Caissafan

    ghost commented 4 years ago

    Try " export LC_ALL=C.UTF-8 " ?

    caissist commented 4 years ago

    Try " export LC_ALL=C.UTF-8 " ?

    I did but nothing changed, same errors.

    Caissafan

    ghost commented 4 years ago

    @caissist what is your operating system version and gcc version?

    caissist commented 4 years ago

    @caissistwhat is your operating system version and gcc version?

    Win10 Version 1903, Build 18362.535

    gcc.exe (Rev2, Built by MSYS2 project) 9.2.0

    Caissafan

    ghost commented 4 years ago

    I think you should consider downgrading to earlier msys2 version(e.g. with gcc 8)?

    Something buggy in mingw64 disregards system/environment locale and can't read unicode characters in Cfish code (thats why it complains).

    caissist commented 4 years ago

    I think you should consider downgrading to earlier msys2 version (e.g. with gcc 8)? I've been able to compile your previous source version from July 2019 successfully with MSYS2 MinGW64 64-bit 9.1.0 + 9.2.0 !? Even more, with MSYS2 MinGW64 GCC version 9.x I've done all my compiling jobs.

    I think something buggy there disregards system/environment locale and can't read unicode characters in Cfish code (thats why it complains). How to set specific system/environment locales under Win10 referring to unicode characters?

    Caissafan

    ghost commented 4 years ago

    The setting is located here( from https://www.tenforums.com/general-support/20884-how-do-you-change-language-settings-non-unicode-programs-win10.html ) , but i have no expirience with win10 so i can't predict what it does with locales now(last windows version i used was 7 before switching to MXlinux): Control Panel > Region >Administrative > Language for non-unicode programs > Change system locale

    caissist commented 4 years ago

    The setting is located here( from https://www.tenforums.com/general-support/20884-how-do-you-change-language-settings-non-unicode-programs-win10.html) , but i have no expirience with win10(last windows version i used was 7 before switching to MXlinux): Control Panel >> Region >Administrative > Language for non-unicode programs > Change system locale

    Thank you! And which Region settings do you advise?

    Caissafan

    ghost commented 4 years ago

    https://www.tenforums.com/tutorials/132050-change-system-locale-windows-10-a.html Its has a checkbox: BETA: Use Unicode UTF-8 for worldwide language support (<--this is probably what mingw64 expects)

    caissist commented 4 years ago

    https://www.tenforums.com/tutorials/132050-change-system-locale-windows-10-a.html Its has a checkbox: BETA: Use Unicode UTF-8 for worldwide language support

    I did, restarted Windows and tried again but same messy situation, see enclosed compiling log file.

    Caissafan

    In file included from benchmark.c:27: position.h:7:1: error: expected identifier or '(' before '<' token 7 | <!DOCTYPE html> | ^ In file included from benchmark.c:27: position.h:32:37: error: stray '\302' in program 32 | Cfish/position.h at master · syzygy1/Cfish · GitHub | ^ position.h:32:38: error: stray '\267' in program 32 | Cfish/position.h at master · syzygy1/Cfish · GitHub | ^ position.h:32:54: error: stray '\302' in program 32 | Cfish/position.h at master · syzygy1/Cfish · GitHub | ^ position.h:32:55: error: stray '\267' in program 32 | Cfish/position.h at master · syzygy1/Cfish · GitHub | ^ In file included from benchmark.c:27: position.h:150:13: error: expected '=', ',', ';', 'asm' or 'attribute' before '<' token 150 | | ^ In file included from benchmark.c:27: position.h:176:267: error: expected identifier or '(' before '<' token 176 | Features | ^ position.h:189:332: error: expected identifier or '(' before '<' token 189 |

  • Customer stories
  • | ^ position.h:190:308: error: expected identifier or '(' before '<' token 190 |
  • Security
  • | ^ position.h:210:299: error: expected identifier or '(' before '<' token 210 |
  • Explore GitHub
  • | ^ position.h:213:123: error: expected '=', ',', ';', 'asm' or 'attribute' before '<' token 213 |

    Learn & contribute

    | ^ position.h:246:262: error: expected identifier or '(' before '<' token 246 | Plans | ^ position.h:254:312: error: expected identifier or '(' before '<' token 254 |
  • Nonprofit
  • | ^ position.h:255:335: error: expected identifier or '(' before '<' token 255 |
  • Education
  • | ^ position.h:273:10: warning: missing terminating ' character 273 |
    | ^ position.h:632:16: error: missing terminating ' character 632 |
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from benchmark.c:27: position.h:698:7: error: expected identifier or '(' before '<' token 698 |
    | ^ position.h:839:70: error: stray '#' in program 839 | #ifndef POSITION_H | ^ position.h:843:70: error: stray '#' in program 843 | #define POSITION_H | ^ position.h:852:70: error: stray '#' in program 852 | #include <assert.h> | ^ position.h:852:149: error: expected identifier or '(' before '<' token 852 | #include <assert.h> | ^ position.h:852:189: error: expected identifier or '(' before '<' token 852 | #include <assert.h> | ^ position.h:856:70: error: stray '#' in program 856 | #ifndef _WIN32 | ^ position.h:860:70: error: stray '#' in program 860 | #include <pthread.h> | ^ position.h:860:149: error: expected identifier or '(' before '<' token 860 | #include <pthread.h> | ^ position.h:860:190: error: expected identifier or '(' before '<' token 860 | #include <pthread.h> | ^ position.h:864:70: error: stray '#' in program 864 | #endif | ^ position.h:868:70: error: stray '#' in program 868 | #include <stdatomic.h> | ^ position.h:868:149: error: expected identifier or '(' before '<' token 868 | #include <stdatomic.h> | ^ position.h:868:192: error: expected identifier or '(' before '<' token 868 | #include <stdatomic.h> | ^ position.h:872:70: error: stray '#' in program 872 | #include <stddef.h> // For offsetof() | ^ position.h:872:149: error: expected identifier or '(' before '<' token 872 | #include <stddef.h> // For offsetof() | ^ position.h:872:189: error: expected identifier or '(' before '<' token 872 | #include <stddef.h> // For offsetof() | ^ position.h:876:70: error: stray '#' in program 876 | #include <string.h> | ^ position.h:876:149: error: expected identifier or '(' before '<' token 876 | #include <string.h> | ^ position.h:876:189: error: expected identifier or '(' before '<' token 876 | #include <string.h> | ^ position.h:885:70: error: stray '#' in program 885 | #include "bitboard.h" | ^ position.h:885:151: error: expected identifier or '(' before '<' token 885 | #include "bitboard.h" | ^ position.h:885:195: error: expected identifier or '(' before '<' token 885 | #include "bitboard.h" | ^ position.h:889:70: error: stray '#' in program 889 | #include "types.h" | ^ position.h:889:151: error: expected identifier or '(' before '<' token 889 | #include "types.h" | ^ position.h:889:192: error: expected identifier or '(' before '<' token 889 | #include "types.h" | ^ position.h:898:180: error: expected identifier or '(' before '<' token 898 | extern const char PieceToChar[]; | ^ position.h:902:145: error: expected identifier or '(' before '<' token 902 | extern Key matKey[16]; | ^ position.h:931:71: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic] 931 | }; | ^ position.h:931:72: error: expected identifier or '(' before '<' token 931 | }; | ^ position.h:940:144: error: expected identifier or '(' before '<' token 940 | extern struct Zob zob; | ^ position.h:949:170: error: expected identifier or '(' before '<' token 949 | void psqt_init(void); | ^ position.h:953:169: error: expected identifier or '(' before '<' token 953 | void zob_init(void); | ^ position.h:1227:72: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic] 1227 | }; | ^ position.h:1227:73: error: expected identifier or '(' before '<' token 1227 | }; | ^ position.h:1236:150: error: expected identifier or '(' before '<' token 1236 | typedef struct Stack Stack; | ^ position.h:1245:71: error: stray '#' in program 1245 | #define StateCopySize offsetof(Stack, capturedPiece) | ^ position.h:1249:71: error: stray '#' in program 1249 | #define StateSize offsetof(Stack, pv) | ^ position.h:1253:71: error: stray '#' in program 1253 | #define SStackBegin(st) (&st.pv) | ^ position.h:1253:182: error: expected '=', ',', ';', 'asm' or 'attribute' before '.' token 1253 | #define SStackBegin(st) (&st.pv) | ^ position.h:1257:71: error: stray '#' in program 1257 | #define SStackSize (offsetof(Stack, countermove) - offsetof(Stack, pv)) | ^ position.h:1324:71: error: stray '#' in program 1324 | #ifdef PEDANTIC | ^ position.h:1352:71: error: stray '#' in program 1352 | #endif | ^ position.h:1488:71: error: stray '#' in program 1488 | #ifndef _WIN32 | ^ position.h:1504:71: error: stray '#' in program 1504 | #else | ^ position.h:1516:71: error: stray '#' in program 1516 | #endif | ^ position.h:1520:72: warning: ISO C does not allow extra ';' outside of a function [-Wpedantic] 1520 | }; | ^ position.h:1520:73: error: expected identifier or '(' before '<' token 1520 | }; | ^ position.h:1533:226: error: expected identifier or '(' before '<' token 1533 | void pos_set(Pos pos, char fen, int isChess960); | ^ position.h:1537:216: error: expected identifier or '(' before '<' token 1537 | void pos_fen(const Pos pos, char fen); | ^ position.h:1541:149: error: expected identifier or '(' before '<' token 1541 | void print_pos(Pos pos); | ^ position.h:1558:120: error: expected identifier or '(' before '<' token 1558 | Bitboard pinners); | ^ position.h:1567:192: error: expected identifier or '(' before '<' token 1567 | PURE int is_legal(const Pos pos, Move m); | ^ position.h:1571:199: error: expected identifier or '(' before '<' token 1571 | PURE int is_pseudo_legal(const Pos pos, Move m); | ^ position.h:1575:214: error: expected identifier or '(' before '<' token 1575 | PURE int gives_check_special(const Pos pos, Stack st, Move m); | ^ position.h:1588:197: error: expected identifier or '(' before '<' token 1588 | void do_move(Pos pos, Move m, int givesCheck); | ^ position.h:1592:157: error: expected identifier or '(' before '<' token 1592 | void undo_move(Pos pos, Move m); | ^ position.h:1596:152: error: expected identifier or '(' before '<' token 1596 | void do_null_move(Pos pos); | ^ position.h:1600:161: error: expected identifier or '(' before '<' token 1600 | INLINE void undo_null_move(Pos pos); | ^ position.h:1613:168: error: expected identifier or '(' before '<' token 1613 | PURE Value see_sign(const Pos pos, Move m); | ^ position.h:1617:205: error: expected identifier or '(' before '<' token 1617 | PURE Value see_test(const Pos pos, Move m, int value); | ^ position.h:1626:167: error: expected identifier or '(' before '<' token 1626 | PURE Key key_after(const Pos pos, Move m); | ^ position.h:1630:183: error: expected identifier or '(' before '<' token 1630 | PURE int is_draw(const Pos pos); | ^ position.h:1634:226: error: expected identifier or '(' before '<' token 1634 | PURE bool has_game_cycle(const Pos *pos, int ply); | ^ position.h:1647:71: error: stray '#' in program 1647 | #define pieces() (pos->byTypeBB[0]) | ^ position.h:1647:159: error: expected expression before '<' token 1647 | #define pieces() (pos->byTypeBB[0]) | ^ position.h:1651:71: error: stray '#' in program 1651 | #define pieces_p(p) (pos->byTypeBB[p]) | ^ position.h:1651:188: error: 'p' undeclared here (not in a function) 1651 | #define pieces_p(p) (pos->byTypeBB[p]) | ^ position.h:1651:190: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1651 | #define pieces_p(p) (pos->byTypeBB[p]) | ^ position.h:1655:71: error: stray '#' in program 1655 | #define pieces_pp(p1,p2) (pos->byTypeBB[p1] | pos->byTypeBB[p2]) | ^ position.h:1655:193: error: 'p1' undeclared here (not in a function) 1655 | #define pieces_pp(p1,p2) (pos->byTypeBB[p1] | pos->byTypeBB[p2]) | ^~ position.h:1655:197: error: expected '=', ',', ';', 'asm' or 'attribute' before '|' token 1655 | #define pieces_pp(p1,p2) (pos->byTypeBB[p1] | pos->byTypeBB[p2]) | ^ position.h:1655:216: error: 'p2' undeclared here (not in a function) 1655 | #define pieces_pp(p1,p2) (pos->byTypeBB[p1] | pos->byTypeBB[p2]) | ^~ position.h:1655:219: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1655 | #define pieces_pp(p1,p2) (pos->byTypeBB[p1] | pos->byTypeBB[p2]) | ^ position.h:1659:71: error: stray '#' in program 1659 | #define pieces_c(c) (pos->byColorBB[c]) | ^ position.h:1659:189: error: 'c' undeclared here (not in a function) 1659 | #define pieces_c(c) (pos->byColorBB[c]) | ^ position.h:1659:191: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1659 | #define pieces_c(c) (pos->byColorBB[c]) | ^ position.h:1663:71: error: stray '#' in program 1663 | #define pieces_cp(c,p) (pieces_p(p) & pieces_c(c)) | ^ position.h:1663:192: error: expected identifier or '(' before '<' token 1663 | #define pieces_cp(c,p) (pieces_p(p) & pieces_c(c)) | ^ position.h:1667:71: error: stray '#' in program 1667 | #define pieces_cpp(c,p1,p2) (pieces_pp(p1,p2) & pieces_c(c)) | ^ position.h:1667:202: error: expected identifier or '(' before '<' token 1667 | #define pieces_cpp(c,p1,p2) (pieces_pp(p1,p2) & pieces_c(c)) | ^ position.h:1671:71: error: stray '#' in program 1671 | #define piece_on(s) (pos->board[s]) | ^ position.h:1671:185: error: 's' undeclared here (not in a function) 1671 | #define piece_on(s) (pos->board[s]) | ^ position.h:1671:187: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1671 | #define piece_on(s) (pos->board[s]) | ^ position.h:1675:71: error: stray '#' in program 1675 | #define ep_square() (pos->st->epSquare) | ^ position.h:1675:155: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1675 | #define ep_square() (pos->st->epSquare) | ^ position.h:1675:168: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1675 | #define ep_square() (pos->st->epSquare) | ^ position.h:1679:71: error: stray '#' in program 1679 | #define is_empty(s) (!piece_on(s)) | ^ position.h:1683:71: error: stray '#' in program 1683 | #ifdef PEDANTIC | ^ position.h:1687:71: error: stray '#' in program 1687 | #define piece_count(c,p) (pos->pieceCount[8 (c) + (p)] - (8(c)+(p)) 16) | ^ position.h:1687:195: error: expected expression before '<' token 1687 | #define piece_count(c,p) (pos->pieceCount[8 (c) + (p)] - (8(c)+(p)) 16) | ^ position.h:1691:71: error: stray '#' in program 1691 | #define piece_list(c,p) (&pos->pieceList[16 (8 (c) + (p))]) | ^ position.h:1691:183: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1691 | #define piece_list(c,p) (&pos->pieceList[16 (8 (c) + (p))]) | ^ position.h:1691:198: error: expected expression before '<' token 1691 | #define piece_list(c,p) (&pos->pieceList[16 (8 (c) + (p))]) | ^ position.h:1695:71: error: stray '#' in program 1695 | #define square_of(c,p) (pos->pieceList[16 (8 (c) + (p))]) | ^ position.h:1695:192: error: expected expression before '<' token 1695 | #define square_of(c,p) (pos->pieceList[16 (8 (c) + (p))]) | ^ position.h:1699:71: error: stray '#' in program 1699 | #define loop_through_pieces(c,p,s) \ | ^ position.h:1699:185: error: stray '\' in program 1699 | #define loop_through_pieces(c,p,s) \ | ^ position.h:1703:163: error: stray '\' in program 1703 | const uint8_t pl = piece_list(c,p); \ | ^ position.h:1703:164: error: expected identifier or '(' before '<' token 1703 | const uint8_t pl = piece_list(c,p); \ | ^ position.h:1711:71: error: stray '#' in program 1711 | #else | ^ position.h:1715:71: error: stray '#' in program 1715 | #define piece_count(c,p) (popcount(pieces_cp(c, p))) | ^ position.h:1719:71: error: stray '#' in program 1719 | #define square_of(c,p) (lsb(pieces_cp(c,p))) | ^ position.h:1723:71: error: stray '#' in program 1723 | #define loop_through_pieces(c,p,s) \ | ^ position.h:1723:185: error: stray '\' in program 1723 | #define loop_through_pieces(c,p,s) \ | ^ position.h:1727:104: error: stray '\' in program 1727 | Bitboard pcs = pieces_cp(c,p); \ | ^ position.h:1727:105: error: expected identifier or '(' before '<' token 1727 | Bitboard pcs = pieces_cp(c,p); \ | ^ position.h:1731:115: error: expected identifier or '(' before '&' token 1731 | while (pcs && (s = pop_lsb(&pcs), 1)) | ^ position.h:1731:123: error: expected ')' before '=' token 1731 | while (pcs && (s = pop_lsb(&pcs), 1)) | ^~ | ) position.h:1735:71: error: stray '#' in program 1735 | #endif | ^ position.h:1739:71: error: stray '#' in program 1739 | #define piece_count_mk(c, p) (((pos_material_key()) >> (20 (c) + 4 (p) + 4)) & 15) | ^ position.h:1739:206: error: expected identifier or '(' before '&' token 1739 | #define piece_count_mk(c, p) (((pos_material_key()) >> (20 (c) + 4 (p) + 4)) & 15) | ^ position.h:1739:212: error: expected identifier or '(' before '<' token 1739 | #define piece_count_mk(c, p) (((pos_material_key()) >> (20 (c) + 4 (p) + 4)) & 15) | ^ position.h:1739:324: error: expected identifier or '(' before '<' token 1739 | #define piece_count_mk(c, p) (((pos_material_key()) >> (20 (c) + 4 (p) + 4)) & 15) | ^ position.h:1752:71: error: stray '#' in program 1752 | #define can_castle_cr(cr) (pos->st->castlingRights & (cr)) | ^ position.h:1752:187: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1752 | #define can_castle_cr(cr) (pos->st->castlingRights & (cr)) | ^ position.h:1752:207: error: expected '=', ',', ';', 'asm' or 'attribute' before '&' token 1752 | #define can_castle_cr(cr) (pos->st->castlingRights & (cr)) | ^ position.h:1752:217: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1752 | #define can_castle_cr(cr) (pos->st->castlingRights & (cr)) | ^ position.h:1756:71: error: stray '#' in program 1756 | #define can_castle_c(c) can_castle_cr((WHITE_OO | WHITE_OOO) << (2 (c))) | ^ position.h:1756:215: error: expected identifier or '(' before '&' token 1756 | #define can_castle_c(c) can_castle_cr((WHITE_OO | WHITE_OOO) << (2 (c))) | ^ position.h:1756:221: error: expected identifier or '(' before '<' token 1756 | #define can_castle_c(c) can_castle_cr((WHITE_OO | WHITE_OOO) << (2 * (c))) | ^ position.h:1760:71: error: stray '#' in program 1760 | #define can_castle_any() (pos->st->castlingRights) | ^ position.h:1760:160: error: expected '=', ',', ';', 'asm' or 'attribute' before '-' token 1760 | #define can_castle_any() (pos->st->castlingRights) | ^ position.h:1760:179: error: expected '=', ',', ';', 'asm' or 'attribute' before ')' token 1760 | #define can_castle_any() (pos->st->castlingRights) | ^ position.h:1764:71: error: stray '#' in program 1764 | #ifdef PEDANTIC | ^ position.h:1768:71: error: stray '#' in program 1768 | #define castling_impeded(<spa

    ghost commented 4 years ago

    Wait a minute why are your error messages peppered with github html? Did you manually copy each file from github instead of downloading the zip file????????? Goto cfish > Clone or Download button > Download zip > unzip to new folder -> compile this.