I have a program and a subprogram. I compile my program with the following statement:
cobc -x -free -Wall program.cob
My issue is with my subprogram. I use the following statement to compile it:
cobc -c -free -Wall mysubprogram.cob
When i use the -c flag it compiles but the code doesn't get updated. When i change a value for example in the code, it will compile but that change wont be reflected when I run the program.
But if i change the flag from -c to -m like the following:
cobc -m -free -Wall mysubprogram.cob
This will fix the issue and the changes I made to the code will also appear when I run the code
Can someone please help me understand why this is happening?