You have a version of libcob in PATH that is older.
You may want to call the cobenv.cmd (which should ensuere that the new one is in PATH) before any test compile / run.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to follow the latest build guide step-by-step but when I try to run testfunc.exe, I get this:
c:\msys64\mingw64>testfunc
libcob: error: version mismatch
libcob: testfunc.cob has version 3.1-rc1.0
libcob: libcob has version 3.0-rc1.0
What did I do wrong?
You have a version of libcob in PATH that is older.
You may want to call the cobenv.cmd (which should ensuere that the new one is in PATH) before any test compile / run.
Thanks! For some reason I had a copy of libcob from 2019 in c:\windows\system32. I updated that copy and all's good now.