Libraries linkage question
-
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
-
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
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![^]