juce_graphics depends on juce_gui_basics but no warning


#1

In introjucer when i want to use juce_graphics, but not juce_gui_basics Introjucer says ok but a linker error appears

1>  LINK : .\Debug\\CtrlrWeb.exe not found or not built by the last incremental link; performing full link
1>     Creating library .\Debug\CtrlrWeb.lib and object .\Debug\CtrlrWeb.exp
1>juce_graphics.obj : error LNK2001: unresolved external symbol "public: virtual class juce::ImagePixelData * __thiscall juce::NativeImageType::create(enum juce::Image::PixelFormat,int,int,bool)const " (?create@NativeImageType@juce@@UBEPAVImagePixelData@2@W4PixelFormat@Image@2@HH_N@Z)
1>.\Debug\\CtrlrWeb.exe : fatal error LNK1120: 1 unresolved externals

once i add juce_gui_basics it builds fine, i guess if that dependency is needed Introjucer should highlight juce_graphics as red.


#2

Ah… in fact there shouldn’t be a dependency there at all, I need to move those missing functions out of the gui module and into the graphics one. Thanks for the heads-up, I’ll sort that out now.