Code Monkey home page Code Monkey logo

Comments (10)

syzygy1 avatar syzygy1 commented on June 27, 2024

Did you update your MSYS installation after #29 ?

It seems MSYS/MinGW doesn't know what it wants.

from cfish.

syzygy1 avatar syzygy1 commented on June 27, 2024

Ah, I thought these warning were caused by the changes I made then, but that's not true.

from cfish.

syzygy1 avatar syzygy1 commented on June 27, 2024

The problem is that fixing this by using the %z modifier for both Linux and Windows breaks cross-compilation for Windows with MinGW on Linux. (I could just cast the size_t values to int and use %d to work around the problem, but there is an annoying inconsistency in MinGW.)

from cfish.

syzygy1 avatar syzygy1 commented on June 27, 2024

Adding a compilation flag may have done the trick. At least it works now for MinGW on Linux.
1e615f5

from cfish.

Saugstrahler avatar Saugstrahler commented on June 27, 2024

nope, it's not fixed and now I get additional warnings.....

a) benchmark.c:209:35: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "\nPosition: %zu/%zu\n", ++j, num_fens - num_opts);

b) benchmark.c:209:21: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "\nPosition: %zu/%zu\n", ++j, num_fens - num_opts);

c) benchmark.c:223:19: warning: ISO C does not support the 'I64' ms_printf length modifier [-Wformat=]

from cfish.

syzygy1 avatar syzygy1 commented on June 27, 2024

Do you get those warnings with COMP=mingw or with the (default) COMP=gcc?

I suppose you're also getting warnings in at least search,c?

from cfish.

Saugstrahler avatar Saugstrahler commented on June 27, 2024

COMP=gcc (7.3.0)
I get warnings in:
benchmark.c
position.c
search.c
tt.c

from cfish.

syzygy1 avatar syzygy1 commented on June 27, 2024

OK, please try again with the latest commit.

from cfish.

Saugstrahler avatar Saugstrahler commented on June 27, 2024

works fine, no warnings anymore........but final executable increased size from 196k to 221k

from cfish.

syzygy1 avatar syzygy1 commented on June 27, 2024

Yes, because it now links in a standard-compliant version of printf.
Without it you need to use %I, but then the compiler complains.

from cfish.

Related Issues (20)

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.