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. Libraries linkage question

Libraries linkage question

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++data-structureshelpworkspace
2 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.
  • E Offline
    E Offline
    eli15021979
    wrote on last edited by
    #1

    Hi, I'm working on a project with the following configuration: - several static libraries (*.lib) which contains some services. - MFC application which link to the above libraries in order to use it's services. All of the projects stored in the same solution. One of the static libraries contain a static array with a predefined size. I know that if I add the header of that library to my MFC application project(the only project which is an executable file) and recompile the entire solution , the array will be allocated according to the specified size in the overriden file. The problem is that now I don't have the libraries in my solution(instead - I only get the *.lib files),therefor, I can't recompile those libraries(and still - I need to change the size of that array from the MFC application project). Is it possible?(Is there a compiler setting which I missed????) :doh: With best regards, Eli

    G 1 Reply Last reply
    0
    • E eli15021979

      Hi, I'm working on a project with the following configuration: - several static libraries (*.lib) which contains some services. - MFC application which link to the above libraries in order to use it's services. All of the projects stored in the same solution. One of the static libraries contain a static array with a predefined size. I know that if I add the header of that library to my MFC application project(the only project which is an executable file) and recompile the entire solution , the array will be allocated according to the specified size in the overriden file. The problem is that now I don't have the libraries in my solution(instead - I only get the *.lib files),therefor, I can't recompile those libraries(and still - I need to change the size of that array from the MFC application project). Is it possible?(Is there a compiler setting which I missed????) :doh: With best regards, Eli

      G Offline
      G Offline
      Gary R Wheeler
      wrote on last edited by
      #2

      You can't change the size of the array. The libraries only 'know' the size of the array that was in effect when they were originally compiled.

      Software Zen: delete this;
      Fold With Us![^]

      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