I have two C/C++ executable projects in a solution. The output for one of the projects is needed for the other; think of the second project like an installer of some sort (it's not, so I don't need an installer project, but it'll read the output of the second project as though it were).
Is there some way I can convert the raw data from the first project's output into something usable from compile time? Something like this is what I had in mind:
// build order is set so this second project is built after the first is completed
/*c++ constexpr*/ unsigned char ProjectOneOutput[ ] =
SOME_PREPROCESSOR_MACRO_TO_READ_FILES( PROJECT_ONE_OUTPUT_PATH );
// code that uses ProjectOneOutput goes here
Edit: These answers will not work.
External linkage isn't what I'm looking for, unless there is a way to do it directly in the file.
This is not raw C/C++, it requires an external program.
The file is a PE, thus it cannot be enclosed in
STR(
)
.