Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Possible to build static Libs with Ressources?

Possible to build static Libs with Ressources?

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    conman110
    wrote on last edited by
    #1

    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

    M 1 Reply Last reply
    0
    • C conman110

      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

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      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 how afxres.rc is included by the MFC wizard (View > Resource Includes in VC6).

      C 1 Reply Last reply
      0
      • M Mike Dimmick

        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 how afxres.rc is included by the MFC wizard (View > Resource Includes in VC6).

        C Offline
        C Offline
        conman110
        wrote on last edited by
        #3

        Seems as if that's the only way. Thanks!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups