Sorry following posted anonymously (do wish Sourceforge would not allow anon. postings).
If I comile a program from IDE using pf8 then run it I get::
c:>c:\cobol\devl\source\bin\testcall.exe
libcob: error: version mismatch
note: testcall.cbl has version 2.0.0
note: libcob has version 3.1.2.0
If I compile it separately using cobc the program works OK.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So in this case your IDE uses an OpenCOBOL 2.0 version for compiling but the system has GnuCOBOL 3.1.2 installed. If needed you can run GnuCOBOL 2.2 modules, but older modules are not compatible with GnuCOBOL 3.
I'd suggest to uninstall the 2..0 version (which is maybe below the IDE) and also use the system installed 3.1.2 there.
(As OC 2.0 had no "real release" it is highly suggest to NOT use that).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks Simon. Did as you suggest but (when using pf8) it produces a pile of warning errors for all my screen displays (I do not specify pics on screen lines but allow them to default to the items' pics -- this saves having to changethem if the source pic should be changed). Is there a way to avoid this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry following posted anonymously (do wish Sourceforge would not allow anon. postings).
If I comile a program from IDE using pf8 then run it I get::
c:>c:\cobol\devl\source\bin\testcall.exe
libcob: error: version mismatch
note: testcall.cbl has version 2.0.0
note: libcob has version 3.1.2.0
If I compile it separately using cobc the program works OK.
So in this case your IDE uses an OpenCOBOL 2.0 version for compiling but the system has GnuCOBOL 3.1.2 installed. If needed you can run GnuCOBOL 2.2 modules, but older modules are not compatible with GnuCOBOL 3.
I'd suggest to uninstall the 2..0 version (which is maybe below the IDE) and also use the system installed 3.1.2 there.
(As OC 2.0 had no "real release" it is highly suggest to NOT use that).
Thanks Simon. Did as you suggest but (when using pf8) it produces a pile of warning errors for all my screen displays (I do not specify pics on screen lines but allow them to default to the items' pics -- this saves having to changethem if the source pic should be changed). Is there a way to avoid this?
Likely - provide the compile command line you actually use and some sample code/warnings and we can investigate further.