MVC Pattern in oF, circular dependency problem

I’m trying to implement the MVC pattern in oF. The first problem that i encountered was a circular dependency.
First I create a model, then the controller and lastly the view.

There is a circular dependency between the view and the controller. I tried a forward declaration of the controller before declaring the view. The code compiles, but when I try to access a member method of the controller inside the view, i get an error:

invalid use of incomplete type

If anyone has any experience with mvc in oF some help is appreciated.

My problem is solved. For people facing the same issue, I leave here two threads on stackoverflow that helped me understand and solve the problem.