undeclared identifier 'File

Jul 18, 2021 at 7:24pm
I have got this error Use of undeclared identifier 'File'. How do i fix it ? thanks

1
2
3
4
5
6
7
8
9
void DeckGUI::filesDropped(const juce::StringArray &files, int x, int y)
{
    std::cout << "DeckGUI::filesDropped" << std::endl;
    if(files.size() == 1)
    {
        //convert url to string array file name
        player->loadURL(juce::URL{File{files[0]}});
    }
}
Jul 18, 2021 at 7:31pm
Did you mean juce::File?
Jul 18, 2021 at 8:28pm
yes thanks@heios. now, Build Succeeded but I cant dragged the file into Deck and I have got this message JUCE Message Thread (1): breakpoint 2.1 (1)
Topic archived. No new replies allowed.