Problem running LVGL on codeblocks simulator on PC

Important: unclear posts may not receive useful answers.

Before posting

Description

Problem running LVGL on codeblocks simulator on PC

What MCU/Processor/Board and compiler are you using?

Code::Blocks 20.03

What do you want to achieve?

I wan to run some of the ready-to-use projects supplied with lv_port_win_codeblocks

What have you tried so far?

I have followed the instructions on webpage:
GitHub - lvgl/lv_port_win_codeblocks: Windows PC simulator project for LVGL embedded GUI Library
including the MinGW upgrade, and “set use flat objcts”.
I have loaded project lvgl.cbp, and executed Build and Run, all with no problems.
Under “Sources” I can see all the demos and examples.
The project starts by building and running file: “lv_demo_widgets.c”
This works correctly, opening a window that displays the screen generated, and with ability to click on tabs, graph points, etc.

So far so good.
But now I select another file from the many on offer, eg: “lv_example_button_1.c”
and open it. When I click on Build the build log says: “Target is up to date”.
I force it to build by making an insignificant edit in the file, eg insert a space. The build now runs and the first two lines of the build log show that it has run the correct file. There are no errors.
I now click on Run, and up pops the window that displays the screen generated.
But it is NOT the screen for “example_button_1”, instead it shows “lv_demo_widgets” screen that comes up initially. I have tried several different files, all with same result – it always comes up with the “lv_demo_widgets” screen.

I think I must have missed a vital step or something.
Can you help ?
Thank you.

Code to reproduce

Not applicable – it is not a code issue.

The code block(s) should be between ```c and ``` tags:

/*You code here*/

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.