apologies if this has been mentioned already. I had a query re linking static libraries in a JUCE project.
I have two Visual Studio C++ projects, A and B, that both compile into static libraries (no dependency on JUCE, just C++ stuff); B depends on A. Some context:
- Project A contains MIDI functions
- Project B contains (MIDI-related) functions for a specific hardware synthesiser and uses A’s functionalities.
Both projects compile fine. I can also create a non-JUCE VS solution, import the above libraries and compile a working application.
I’m trying to figure out the correct settings for importing projects A and B in a Projucer project. So far, I’ve found different suggestions in previous posts here in the forum e.g., some suggest to include the .lib extension, others omit it on purpose.
In Projucer’s Extra Compiler Flags, Extra Linker Flags, and External Libraries to Link boxes, I’ve added the following:
When compiling, VS complains that
1>LINK : fatal error LNK1104: cannot open file 'libA.obj'
Since both libraries A and B are in continuous development, I’m particularly interested in adding references to A and B in the JUCE application (so that I can edit all three projects simultaneously if needed). Is this possible?
Any help much appreciated!