ShootMe / Klondike-Solver

https://github.com/ShootMe/MinimalKlondike for the updated Solver
MIT License
64 stars 29 forks source link

some errors #1

Closed jimmywarting closed 7 years ago

jimmywarting commented 9 years ago

Tried to compile the source on my mac but had some problems:

Jimmys-MBP:Klondike-Solver-master jimmywarting$ make
g++ -g -o KlondikeSolver KlondikeSolver.cpp
In file included from KlondikeSolver.cpp:4:
./Solitaire.h:73:27: error: a space is required between consecutive right angle brackets (use '> >')
        stack<shared_ptr<MoveNode>> open[512];
                                 ^~
                                 > >
KlondikeSolver.cpp:8:26: warning: '&&' within '||' [-Wlogical-op-parentheses]
        while (index < f.size() && f[index] == '\r' || f[index] == '\n' || f[index] == '\t' || f[index] == ' ') { index++; }
               ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ ~~
KlondikeSolver.cpp:8:26: note: place parentheses around the '&&' expression to silence this warning
        while (index < f.size() && f[index] == '\r' || f[index] == '\n' || f[index] == '\t' || f[index] == ' ') { index++; }
                                ^
               (                                   )
KlondikeSolver.cpp:47:7: error: use of undeclared identifier '_stricmp'; did you mean 'strcmp'?
                if (_stricmp(argv[i], "-draw") == 0 || _stricmp(argv[i], "/draw") == 0 || _stricmp(argv[i], "-dc") == 0 || _stricmp(argv[i], "/dc") == 0) {
                    ^~~~~~~~
                    strcmp

Do you have any executable file to download?

ShootMe commented 9 years ago

I don't have any Mac executables for download. I can upload a windows one though.

jimmywarting commented 9 years ago

That would be great. You can maybe fix those errors anyway? Use something more universal that works on both unix and Windows? I managed to compile it through xCode after some tweaks