Scid vs PC with CQL , build issue

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

stevenaaus
Posts: 608
Joined: Wed Oct 13, 2010 9:44 am
Location: Australia

Scid vs PC with CQL , build issue

Post by stevenaaus »

Scid vs PC has recently added support for CQL (5.1) query searches (thanks Lionel).
The code is in subversion, and it seems to go ok :).
https://sourceforge.net/p/scidvspc/code/HEAD/tree/

But we can't get it going properly with our cross compilers.

We don't have a cross compiler with c++11 support. c++0x is sufficient on our linux and OS X builds, and *some* win32 systems.
But on other (critical) win32/win64 systems we get multiple errors like this one.
Any ideas about how to fix. Cheers

Code: Select all

i686-pc-mingw32-g++ -DWIN32 -O2 -Wall  -m32 -DZLIB -std=c++0x -Wall -Wno-write-strings -Wno-char-subscripts  -Wno-parentheses -Wno-sign-compare -fdiagnostics-show-option -DINTEGRATED -Isrc/cql -Isrc  -o src/cql/i_assignnode.o -c src/cql/assignnode.cpp
In file included from src/cql/util.h:13:0,
                 from src/cql/node.h:2,
                 from src/cql/assignnode.cpp:1:
src/cql/squaremask.h:5:8: error: function definition does not declare parameters
src/cql/squaremask.h: In constructor 'SquareMask::SquareMask(Mask)':
src/cql/squaremask.h:6:22: error: 'mask' was not declared in this scope
src/cql/squaremask.h: In member function 'void SquareMask::clear()':
src/cql/squaremask.h:18:16: error: 'mask' was not declared in this scope
src/cql/squaremask.h: In member function 'bool SquareMask::empty()':
src/cql/squaremask.h:19:23: error: 'mask' was not declared in this scope
AlvaroBegue
Posts: 931
Joined: Tue Mar 09, 2010 3:46 pm
Location: New York
Full name: Álvaro Begué (RuyDos)

Re: Scid vs PC with CQL , build issue

Post by AlvaroBegue »

You need to enable C++11 (-std=c++11). If your i686-pc-mingw32-g++ doesn't support it, it's probably very old. Is there a newer version available?
stevenaaus
Posts: 608
Joined: Wed Oct 13, 2010 9:44 am
Location: Australia

Re: Scid vs PC with CQL , build issue

Post by stevenaaus »

Ozkan is a compiler guru :) , and he said there wasn't a C++11 one available.
But i think we can compile with VCC if we have too... just very incovenient,
and the binaries wouldn't be really tested as we've always used mingwx.

I was just hoping someone has seen this before and has a solution.

I've also found that compiling CQL without any -O option, CQL search results are erroneous/wrong ! ??
Dann Corbit
Posts: 12537
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Scid vs PC with CQL , build issue

Post by Dann Corbit »

stevenaaus wrote:Scid vs PC has recently added support for CQL (5.1) query searches (thanks Lionel).
The code is in subversion, and it seems to go ok :).
https://sourceforge.net/p/scidvspc/code/HEAD/tree/

But we can't get it going properly with our cross compilers.

We don't have a cross compiler with c++11 support. c++0x is sufficient on our linux and OS X builds, and *some* win32 systems.
But on other (critical) win32/win64 systems we get multiple errors like this one.
Any ideas about how to fix. Cheers

Code: Select all

i686-pc-mingw32-g++ -DWIN32 -O2 -Wall  -m32 -DZLIB -std=c++0x -Wall -Wno-write-strings -Wno-char-subscripts  -Wno-parentheses -Wno-sign-compare -fdiagnostics-show-option -DINTEGRATED -Isrc/cql -Isrc  -o src/cql/i_assignnode.o -c src/cql/assignnode.cpp
In file included from src/cql/util.h:13:0,
                 from src/cql/node.h:2,
                 from src/cql/assignnode.cpp:1:
src/cql/squaremask.h:5:8: error: function definition does not declare parameters
src/cql/squaremask.h: In constructor 'SquareMask::SquareMask(Mask)':
src/cql/squaremask.h:6:22: error: 'mask' was not declared in this scope
src/cql/squaremask.h: In member function 'void SquareMask::clear()':
src/cql/squaremask.h:18:16: error: 'mask' was not declared in this scope
src/cql/squaremask.h: In member function 'bool SquareMask::empty()':
src/cql/squaremask.h:19:23: error: 'mask' was not declared in this scope
Why not just install mingw on a PC and use your same makefiles?
It is easy to obtain gcc 7.2 on windows. It supports C++ 11
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
stevenaaus
Posts: 608
Joined: Wed Oct 13, 2010 9:44 am
Location: Australia

Re: Scid vs PC with CQL , build issue

Post by stevenaaus »

Yeah... we'll probably have to do this. Oz has it working.

Just that there's no joy for either of us using this OS.