wxWidgets: interface/wx/link.h File Reference

| Version: 3.1.5

Loading...
Searching...
No Matches
Macros
link.h File Reference

## Macros
#define | wxFORCE_LINK_THIS_MODULE(moduleName)
| This macro can be used in conjunction with the wxFORCE_LINK_MODULE() macro to force the linker to include in its output a specific object file.
#define | wxFORCE_LINK_MODULE(moduleName)
| This macro can be used in conjunction with the wxFORCE_LINK_THIS_MODULE() macro to force the linker to include in its output a specific object file.

## Macro Definition Documentation

## ◆ wxFORCE_LINK_MODULE

#define wxFORCE_LINK_MODULE | ( |  | moduleName | ) |

This macro can be used in conjunction with the wxFORCE_LINK_THIS_MODULE() macro to force the linker to include in its output a specific object file.

In particular, you should use this macro in a source file which you know for sure is linked in the output (e.g. the source file containing the `main()` of your app). The `moduleName` is the name of the module you want to forcefully link (i.e. the name you used in the relative wxFORCE_LINK_THIS_MODULE() macro.

Include file:

    #include <wx/link.h>

## ◆ wxFORCE_LINK_THIS_MODULE

#define wxFORCE_LINK_THIS_MODULE | ( |  | moduleName | ) |

This macro can be used in conjunction with the wxFORCE_LINK_MODULE() macro to force the linker to include in its output a specific object file.

In particular, you should use this macro in the source file which you want to force for inclusion. The `moduleName` needs to be a name not already in use in other wxFORCE_LINK_THIS_MODULE() macros, but is not required to be e.g. the same name of the source file (even if it's a good choice).

Include file:

    #include <wx/link.h>