Background: I am working on a large c++ project with multiple executable and library outputs with a set of working make files (i.e. assuming you had the entire code base, you could type make and it would build all libraries and executables).
My problem is that I must partially compile the project, and simply link in libraries that have been already compiled for other parts of the project. I have been supplied with the lib files for the other part of the project, but not all of the header files necessary to use the libraries.
Question: How do I go about generating a list of files that I will need to request in order to successfully finish compilation and then linking of parts of the project that have dependencies on the pre-compiled portion of the project? Just by running the make file, I get an error for the first missing dependency, but how can I generate a list of all?
Things I have tried / Example: Fire off the make script to compile and link moduleA. The make churns for awhile, and then issues an error that it can’t find moduleBCommon.h, which was included from moduleAxyz.h. It can’t find it because it does not exist on disk… I have not been provided the file, and must request it.
If you don’t have
moduleBCommon.h, then you can’t know what other headers it#includes, so I don’t think it’s possible to create the whole list before obtaining any of the missing headers.Why can’t you ask for all the header files associated with the libraries? Whoever is in charge of the libraries has already goofed by not providing them, and if nobody knows which header files go with the libraries then clearly someone has bungled the source control, so management should tolerate iterative requests from you.
(Unless your managers are technically incompetent, computer-illiterate, logically challenged MBA types, which is quite possible.)