The zip archive includes the GCSORT manual in both .odt and .pdf formats. You should copy the gcsort.exe file into your \bin folder where cobc.exe and cobcrun.exe reside. When using GCSORT you will need to GnuCOBOL environment variables and runtime libraries, just like you do when running GnuCOBOL programs.
This version of GCSORT should work with 32-bit MinGW GnuCOBOL 3.0 through 3.1.2. The zip archive also includes notes on the build procedure for gcsort in 32-bit MinGW.
Kind regards,
👍
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, it would be very nice to also have GCSORT for MinGW64/MSYS based GnuCOBOL. I am not sure where to begin, since the folder layout for MinGW64 is different from 32-bit MinGW.
Yes, GCSORT needs to be 64-bit for anyone using a 64-bit GnuCOBOL, or where 64-bit applications are needed.
I am not very familiar with dependency walkers, but I gather that releasing GCSORT as a separate binary should include the required MinGW/GnuCOBOL runtime libraries, even if GCSORT is included in GnuCOBOL binaries.
3, 4, and 5 relate to how to package GCSORT as a separate binary.
6 and 7 also relate to packaging the binary.
If I understand you correctly, building GCSORT this way would allow 32-bit GnuCOBOL to CALL SYSTEM USING "GCSORT some option" and invoke a 64-bit Sort. That could be very useful.
Another desirable project for my list, but I can't guarantee when it might be ready.
Thanks very much!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After a great deal of help from Sauro Menna, I have built GCSORT.EXE for 32-bit MinGW GnuCOBOL 3.1.2, and it is available for download here:
https://www.arnoldtrembley.com/GCSORT-gc312-binary.zip
The zip archive includes the GCSORT manual in both .odt and .pdf formats. You should copy the gcsort.exe file into your \bin folder where cobc.exe and cobcrun.exe reside. When using GCSORT you will need to GnuCOBOL environment variables and runtime libraries, just like you do when running GnuCOBOL programs.
This version of GCSORT should work with 32-bit MinGW GnuCOBOL 3.0 through 3.1.2. The zip archive also includes notes on the build procedure for gcsort in 32-bit MinGW.
Kind regards,
That's nice, thank you!
Could you try to also create one for the MSYS2 32bit environment and another for the MSYS2 64bit one?
Ideally there would also be a "ready to use GCSORT 64bit":
~%dp0\bin\GCSORT.exe %*at the endThis way one could
CALL "SYSTEM" USING "GCSORT some option"from a 32bit GnuCOBOL version.Simon,
You're welcome! And I appreciate the feedback.
Yes, it would be very nice to also have GCSORT for MinGW64/MSYS based GnuCOBOL. I am not sure where to begin, since the folder layout for MinGW64 is different from 32-bit MinGW.
3, 4, and 5 relate to how to package GCSORT as a separate binary.
6 and 7 also relate to packaging the binary.
If I understand you correctly, building GCSORT this way would allow 32-bit GnuCOBOL to CALL SYSTEM USING "GCSORT some option" and invoke a 64-bit Sort. That could be very useful.
Another desirable project for my list, but I can't guarantee when it might be ready.
Thanks very much!