Fatal error LNK1104


#1

Just had one of these, putting this up FYI

If you create source files with the Jucer, add them to your (previously working absolutely ok, thanks!) project and then get

fatal error LNK1104: cannot open file ‘jucelib_static_Win32_debug.lib’

it may be because you need to use
#include "juce_amalgamated.h"
rather than
#include "juce.h"
in the generated header file.

I vaguely remember this being mentioned elsewhere, but it doesn’t seem to come up on a search of LNK 1104…


#2

Yes, the juce.h include statement is really just there as a placeholder, you should replace it with your own headers.

And it’s much better to create one header file in your project that contains the juce include statement, and include that in your other files, rather than having direct references to juce.h scattered all over the place.