$ i586-mingw32msvc-cc testA.cpp -o main.exe -lstdc++
$ wine main.exe
i'll kick myself in the pants if this works
$ i586-mingw32msvc-g++ testA.cpp -o main.exe -lstdc++
$ wine main.exe
i'll kick myself in the pants if this works
Thanks.
Tried the 64-bit but it failed
$ x86_64-w64-mingw32-g++ testA.cpp -o main.exe -lstdc++
$ wine main.exe
err:module:import_dll Loading library libgcc_s_sjlj-1.dll (which is needed by L"Z:\\home\\jesse\\eclipse\\testA\\src\\main.exe") failed (error c000007b).
err:module:import_dll Library libstdc++-6.dll (which is needed by L"Z:\\home\\jesse\\eclipse\\testA\\src\\main.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"Z:\\home\\jesse\\eclipse\\testA\\src\\main.exe" failed, status c0000135
Based from above output I think outputting it to your intended format is not that difficult.
Cool, I had just been thinking that a tool that does this would be handy, since my private book code reads lines in d2d4 d7d5 type format.
Now just need to make sure that it can handle crazyhouse drop moves, and conversion to king for suicide chess, and the kings touching in atomic chess...
Hello Jesse.
Many thanks for sharing the shell script too. Unfortunately, it seems that the pasting didn't work very well. I tried to fix things a little bit with the text editor, but I didn't succeed. Also, does the script expect 3 or 4 parameters?
linux@unicluster003_eth0:~$ ./parser.sh prova.pgn 3 ./stockfish
Processing prova.pgn
Tal, Mihail - Zuidema, Coenraad Hoogovens Wijk aan Zee 1973.01.??
1 game matched out of 1.
Processing prova.pgn
Tal, Mihail - Zuidema, Coenraad Hoogovens Wijk aan Zee 1973.01.??
1 game matched out of 1.
rm: cannot remove `log-game-3.txt': No such file or directory
rm: cannot remove `log-game-3.txt.done': No such file or directory
./parser.sh: line 32: syntax error near unexpected token `done'
./parser.sh: line 32: `done'
#!/bin/bash
# expected command line arguments are $1=[file.pgn] $2=[game_id] $3=[seconds per move] $4=[motor]
# for example $ ./thisscript.sh mypgn.pgn 3 2 ./stockfish