Discussion:
Bind showing old object even after adding /replacing a new define
(too old to reply)
Jane Rose
2023-02-14 10:45:25 UTC
Permalink
Hello All,

I am trying to recompile a program. But this program is using a
old submodule so I compiled it with new submodule version
by adding a Define but it did not work.
Then I did alter define but still after compilation the bind shows old object
What can we do?
Do we need to use Bind commands? Or we need to recompile with the submodule?
Randall
2023-02-14 18:42:25 UTC
Permalink
Post by Jane Rose
Hello All,
I am trying to recompile a program. But this program is using a
old submodule so I compiled it with new submodule version
by adding a Define but it did not work.
Then I did alter define but still after compilation the bind shows old object
What can we do?
Do we need to use Bind commands? Or we need to recompile with the submodule?
Can you provide a bit more information on this? How is the submodule referenced in code? What do you mean by "adding a define"? Modules on NonStop, unless DLLs, are not automatically relinked.
Jane Rose
2023-02-15 05:25:59 UTC
Permalink
Post by Randall
Post by Jane Rose
Hello All,
I am trying to recompile a program. But this program is using a
old submodule so I compiled it with new submodule version
by adding a Define but it did not work.
Then I did alter define but still after compilation the bind shows old object
What can we do?
Do we need to use Bind commands? Or we need to recompile with the submodule?
Can you provide a bit more information on this? How is the submodule referenced in code? What do you mean by "adding a define"? Modules on NonStop, unless DLLs, are not automatically relinked.
Jane Rose
2023-02-15 07:58:02 UTC
Permalink
Post by Randall
Post by Jane Rose
Hello All,
I am trying to recompile a program. But this program is using a
old submodule so I compiled it with new submodule version
by adding a Define but it did not work.
Then I did alter define but still after compilation the bind shows old object
What can we do?
Do we need to use Bind commands? Or we need to recompile with the submodule?
Can you provide a bit more information on this? How is the submodule referenced in code? What do you mean by "adding a define"? Modules on NonStop, unless DLLs, are not automatically relinked.
Program A is calling a submodule X (say location $*.P.X). Changes were done in module X and compiled bt at
Different location say $*.Q.X.
Now when program A is compiled, the bind still shows $*.P.X even after I gave ALTER DEFINE, CLASS MAP filename
Do I need to bind the program using bind commands?I checked the manual but did not get the exact procedure to do

Could you please suggest
Randall
2023-02-15 18:54:12 UTC
Permalink
Post by Jane Rose
Post by Randall
Post by Jane Rose
Hello All,
I am trying to recompile a program. But this program is using a
old submodule so I compiled it with new submodule version
by adding a Define but it did not work.
Then I did alter define but still after compilation the bind shows old object
What can we do?
Do we need to use Bind commands? Or we need to recompile with the submodule?
Can you provide a bit more information on this? How is the submodule referenced in code? What do you mean by "adding a define"? Modules on NonStop, unless DLLs, are not automatically relinked.
Program A is calling a submodule X (say location $*.P.X). Changes were done in module X and compiled bt at
Different location say $*.Q.X.
Now when program A is compiled, the bind still shows $*.P.X even after I gave ALTER DEFINE, CLASS MAP filename
Do I need to bind the program using bind commands?I checked the manual but did not get the exact procedure to do
Could you please suggest
As I indicated, you cannot dynamically link a submodule unless it is a DLL. The ALTER DEFINE will have no effect in your environment. You must relink the program. This involves going back to the proper BIND script and running it - assuming you have all the objects and references to the right file. Your development team should have this.
Loading...