I have a program and subprogram. I compile my program with the following statement:
cobc -x-free -Wall program.cob
My problem is with my subprogram I use the following statement to compile it:
< When I use the -c flag, but it compiles it, the code does not get updated when I type in the code Examples It will compile a value, but it will not be reflected when I run the programBut if I change the flag from -c-to-M like the following:
P>
Does anyone help me to understand why this is happening? According to the
-c
is the flag meaning:
Collect and collect, but do not link (it works very similarly when compiling C or C ++).
This means that it is not executable (you will only get one object file) either there will not be an executable at all (if it is the first time), or it The last successful non- -c
will be one of the build (so your "but do not get the code updated" comment).
-m
option creates a dynamically loadable module, which is appropriate for linking against it. The fact that linking is dynamic means that an update for the module is immediately reflected in the executable (made immediately). The
-x
option makes an appropriate execution and therefore automatically updates your updates.
No comments:
Post a Comment