Open koutheir opened 4 years ago
Replacing #[repr(C, u8)]
by either #[repr(C)]
or #[repr(u8)]
in sudoku_ffi/src/sudoku_ffi/src/strategy/strategies.rs:3
results in a successful build. However, running the executable sudoku-gui
immediately causes a segmentation fault. If reproducing this issue is tricky, then I can attach a core dump.
For reference:
$ rustc --version
rustc 1.44.0 (49cae5576 2020-06-01)
$ g++ --version
g++ (Debian 9.3.0-13) 9.3.0
...
$ cmake --version
cmake version 3.16.3
...
Also, I configured a Release
build.
You're right that the ffi bindings are broken with newer rustc versions, but when that is fixed, the GUI compiles and runs fine for me. The issue must therefore lie somewhere on the C++ side, possibly with Qt.
My own versions are a bit older
rustc 1.45.0-nightly (7ced01a73 2020-04-30)
g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
cmake version 3.10.2
Did you also build a release build?
If you mean a release build of sudoku-ffi
, yes. it's the default.
Attempting to build the master results in the following error: