Else, the CLSID are missing from link step even when JUCE_USE_CDBURNER is defined to 0 (and the juce code is not compiled).
This is because microsoft issue linker’s symbol include when INIT_GUID is set.
Actually i dont want to burn anything into the cd. But i want to read from cd.
Now in PC side both reading and burning is in the same file juce_win32_AudioCDReader.cpp. In this file the first line is
#if JUCE_INCLUDED_FILE && JUCE_USE_CDBURNER
and in juce_amalgamated.cpp we have the code
#if JUCE_USE_CDBURNER
/* You'll need the Platform SDK for these headers - if you don't have it and don't
need to use CD-burning, then you might just want to disable the JUCE_USE_CDBURNER
flag in juce_Config.h to avoid these includes.
*/
#include <imapi.h>
#include <imapierror.h>
#endif
so i cant comment out the line in juce_config.h file where we define JUCE_USE_CDBURNER. Thats y i was requesting u to put the code in two different files or use the macro only for burning code.