Author Topic: Renaming source file to header  (Read 2209 times)

Offline carra

  • Multiple posting newcomer
  • *
  • Posts: 117
Renaming source file to header
« on: July 22, 2013, 09:36:10 am »
I only found this topic speaking about the subject, but it does not cover what I'll propose here.

I have noticed that when you use "Rename" option, C::B does not automatically update "compile" and "link" flags upon file extension changes. Though some of you may prefer to do the update manually the problem is that, if you don't realize you have to do it, it will produce very weird errors such as: "File.h.gch file not recognized: File format not recognized".

Since it can be hard to trace that what happened came from you changing "File.cpp" into "File.hpp", shouldn't C::B at least prompt you to change flags when it detects an header<->source extension change?