Prelinking and linking z/OS XL C/C++ programs

Instead of using the prelinker and linkage editor, you can use the binder. See Binding z/OS XL C/C++ programs for more information.

This information shows how to prelink and link your z/OS® XL C/C++ programs. The Language Environment® prelinker combines the object modules that comprise a C or C++ application into a single object module. The linkage editor then processes this object module and generates a load module that can be retrieved for execution.

You do not need to prelink object modules that:
You must use the Language Environment prelinker before linking your application when any of the following are true:

If you do not need to prelink your application, continue to the information in Linking an application. For information on creating object libraries in z/OS XL C++, refer to Object library utility. For information on prelinking and linking object modules under z/OS UNIX System Services, refer to Prelinking and link-editing under the z/OS Shell.

Note: When you use the prelinker to prelink C++ object modules, you may get duplicate symbol warnings due to virtual function symbols generated by the compiler. You can ignore these symbols and warnings. You will not get these messages if you use the binder.