function-definition is not allowed here before '{' token

I have a problem with this line ...can anyone help me, please?

void BootWindow::import_programs()
{
Agejet::prog_1=Program::import_program(Agejet::prog_path+Agejet::prog_1_name);
Agejet::prog_2=Program::import_program(Agejet::prog_path+Agejet::prog_2_name);
Agejet::prog_3=Program::import_program(Agejet::prog_path+Agejet::prog_3_name);
Agejet::prog_4=Program::import_program(Agejet::prog_path+Agejet::prog_4_name);
}

}

screen

We can’t see your code.

void BootWindow::import_programs()
    {
    Agejet::prog_1=Program::import_program(Agejet::prog_path+Agejet::prog_1_name);
    Agejet::prog_2=Program::import_program(Agejet::prog_path+Agejet::prog_2_name);
    Agejet::prog_3=Program::import_program(Agejet::prog_path+Agejet::prog_3_name);
    Agejet::prog_4=Program::import_program(Agejet::prog_path+Agejet::prog_4_name);
    }

}

You probably have a missing } or { somewhere. Or one or more too many. Or in the wrong place.

In what you posted, there is an additional }.

Post your full code, not just where you think the problem is.

I have uploaded the complete file … so maybe you can give me an answer.

bootwindow.cpp (16 KB)

How did you end up on an Arduino forum?

Your code makes uses of the Qt framework by the looks of it. And that does not run on an Arduino.

Will see if I can find time.

I searched the error on the internet and was redirected to this forum.

Your create_treatments() seems to be missing a } (possibly at the end). After fixing that, you will have one } too many at the end of your code.

PS
Arduinos are based on microcontrollers with a very limited about of RAM; the ones I usually use have 2K..8K RAM.