Giter Site home page Giter Site logo

I can't compile it about drofa HOT 8 OPEN

justno4b avatar justno4b commented on July 30, 2024
I can't compile it

from drofa.

Comments (8)

justNo4b avatar justNo4b commented on July 30, 2024 1

Likely fixed with 577a294 , but cant check now.
Will close once I am 100% sure it is fixed

from drofa.

justNo4b avatar justNo4b commented on July 30, 2024

Thank you. I am aware of this issue.
In my nix machine I can use uint instead of unsigned int, but it may cause issues this issues sometimes.

I`ll notify here when I fix this (should be soon)

from drofa.

SzotsGabor avatar SzotsGabor commented on July 30, 2024

I have changed all uint occurrences in endgame.h and bitbase.cc to unsigned int and now compilation is successful.

from drofa.

SzotsGabor avatar SzotsGabor commented on July 30, 2024

Hi Alexander,

Thanks for 4.0.0. Please note that it displays 3.3.27 as version number.

Also, again I have difficulties with compiling. This is how the error message starts:

In file included from src/bitbase.cc:19:
src/endgame.h:55:5: error: 'uint8_t' does not name a type
55 | uint8_t result;
| ^~~~~~~
src/endgame.h:24:1: note: 'uint8_t' is defined in header ''; did you forget to '#include '?
23 | #include "bitutils.h"
+++ |+#include
24 |
src/bitbase.cc:25:1: error: 'uint8_t' does not name a type
25 | uint8_t KPK_Bitbase[KPK_SIZE / 8];
| ^~~~~~~
src/bitbase.cc:24:1: note: 'uint8_t' is defined in header ''; did you forget to '#include '?
23 | #include
+++ |+#include
24 |
src/bitbase.cc: In function 'bool Bitbase::kpk_is_winning(Color, int, int, int)':
src/bitbase.cc:38:13: error: 'KPK_Bitbase' was not declared in this scope; did you mean 'Bitbase'?
38 | return (KPK_Bitbase[index >> 3] & (1 << (index & 7)));
| ^~~~~~~~~~~
| Bitbase
src/bitbase.cc: In function 'void Bitbase::kpk_set(kpk_position*, unsigned int)':
src/bitbase.cc:59:20: error: 'struct kpk_position' has no member named 'result'
59 | bPosition->result = KPK_INVALID;
|

etc.

EDIT: I have similar problem with uint16_t.

from drofa.

tissatussa avatar tissatussa commented on July 30, 2024

@SzotsGabor

..I have difficulties with compiling..

i'm on Xubuntu 22.04 here and all went well : no compile errors nor warnings .. indeed the version number is 3.3.27 after 'uci'.

from drofa.

SzotsGabor avatar SzotsGabor commented on July 30, 2024

@SzotsGabor

..I have difficulties with compiling..

i'm on Xubuntu 22.04 here and all went well : no compile errors nor warnings .. indeed the version number is 3.3.27 after 'uci'.

I think my problem is similar to what I have described above and solved as well but this time instead of 'uint' I have uint8_t and uint16_t and I don't know what to do with them. I am on Windows 11 and use the latest gcc compiler.

Gabor

from drofa.

justNo4b avatar justNo4b commented on July 30, 2024

@SzotsGabor

..I have difficulties with compiling..

i'm on Xubuntu 22.04 here and all went well : no compile errors nor warnings .. indeed the version number is 3.3.27 after 'uci'.

I think my problem is similar to what I have described above and solved as well but this time instead of 'uint' I have uint8_t and uint16_t and I don't know what to do with them. I am on Windows 11 and use the latest gcc compiler.

Gabor

You can try #include <stdint.h> in problem files.
On all of my machines it happens automatically, but not on yours, it seems.
Please write if it helps, I`ll update the release

from drofa.

SzotsGabor avatar SzotsGabor commented on July 30, 2024

You can try #include <stdint.h> in problem files. On all of my machines it happens automatically, but not on yours, it seems. Please write if it helps, I`ll update the release

Yes, it helped, thank you.

from drofa.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.