Running OOP example in codeblocks

I’m running codeblocks 16.01 and openFrameworks 8.4 on windows 10.
I’m very new to coding and I’m starting to get extremely frustrated.

All of the example sketchs compile successfully.

I have followed this tutorial step by step and double checked everything.

I’m getting this error message:
src/Main.cpp:1:20: fatal error: ofMain.h: No such file or directory

I have no idea what to do.

If you can’t find main.h it might be that your project is not in the right location. Openframeworks projects handle includes and linking relative to the root of the OF folder.

you can use the project generator to make a new project and it should set everything up ok, but if you move it from where it is then the relative paths (like …/…/…/libs/openFrameworks/ofMain.h) may break.

also codeblocks is not officially suported anymore and OF 8.4 is pretty old and also unmantained you might have more luck using a newer openframeworks version and one of the recomended IDEs, visual stuido or qt creator on windows