Geany version 1.33 (raspberry pi) not reloading the modified include file. Scenario. Project is composed of multiple project specific include and source cpp file. One the supporting cpp file and corresponding include file is modified to add new method. All the changes is saved. recompile the project and it come back with an error unknown method. The unknown method is the newly added method. Current solution. The force the geany to reload the h file. I have to comment out the include section that refer to this modified h file. Predictably the compiler produce an unknown method/variable. Uncomment the include section where the h file is defined. Recompile the project and the problem disappear.
Geany has nothing to do with compilation, all Geany does is run the compile command. The compiler operates on the files on disk, nothing to do with whats open in Geany, and what files it reads/does not read is up to the compiler. If you have saved the modifications of both the include and cpp file thats all Geany can do.
Its difficult to say what you have done to confuse the compiler, but possibly you have created a precompiled header for the include file by compiling it by itself. This makes the compiler ignore changes in the header, and kind of sounds like your problem. Delete the `.gch` (assuming gcc compiler) file if it exists and don't compile headers, they are intended to be included, not compilable by themselves.
github-comments@lists.geany.org