Scid vs PC with CQL , build issue

Discussion of chess software programming and technical issues.

Moderators: hgm, Harvey Williamson, bob

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
stevenaaus
Posts: 597
Joined: Wed Oct 13, 2010 7:44 am
Location: Australia
Contact:

Scid vs PC with CQL , build issue

Post by stevenaaus » Sat Nov 25, 2017 8:58 am

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: 887
Joined: Tue Mar 09, 2010 2:46 pm
Location: New York

Re: Scid vs PC with CQL , build issue

Post by AlvaroBegue » Sat Nov 25, 2017 1:01 pm

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: 597
Joined: Wed Oct 13, 2010 7:44 am
Location: Australia
Contact:

Re: Scid vs PC with CQL , build issue

Post by stevenaaus » Sun Nov 26, 2017 12:53 am

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: 8794
Joined: Wed Mar 08, 2006 7:57 pm
Location: Redmond, WA USA
Contact:

Re: Scid vs PC with CQL , build issue

Post by Dann Corbit » Tue Nov 28, 2017 3:13 am

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: 597
Joined: Wed Oct 13, 2010 7:44 am
Location: Australia
Contact:

Re: Scid vs PC with CQL , build issue

Post by stevenaaus » Wed Nov 29, 2017 6:34 am

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.

Post Reply