Possible to build static Libs with Ressources?
-
I have tryed to build a static library which includes a method to show a dialog (defined in a ressource file) The linker warning I get is: GLAP.res : warning LNK4221: no public symbols found; archive member will be inaccessible Guess that's why the dialog never shows up when I use the generated lib in in a project. Does anybody know what's the problem? Is it possible to build static libs with ressources like dialogs at all? Thanks! Constantin
-
I have tryed to build a static library which includes a method to show a dialog (defined in a ressource file) The linker warning I get is: GLAP.res : warning LNK4221: no public symbols found; archive member will be inaccessible Guess that's why the dialog never shows up when I use the generated lib in in a project. Does anybody know what's the problem? Is it possible to build static libs with ressources like dialogs at all? Thanks! Constantin
You can only have one resource block in an executable. The linker doesn't know how to link two compiled resources (
.res
files) together. The way I've done it in the past is to include the library's resource file in the application's resource file. See howafxres.rc
is included by the MFC wizard (View > Resource Includes in VC6). -
You can only have one resource block in an executable. The linker doesn't know how to link two compiled resources (
.res
files) together. The way I've done it in the past is to include the library's resource file in the application's resource file. See howafxres.rc
is included by the MFC wizard (View > Resource Includes in VC6).