Author Topic: Pre-Compiled header issue  (Read 5106 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Pre-Compiled header issue
« on: June 03, 2012, 03:18:40 am »
FYI:

I just discovered a possible reason Code::Blocks has such problem with pch files from time to time.

Each project has 3 possible places/ways to store/find the PCH files.

I decided the way the Windows Main Project does it is the valid way to do it. (In the object file folder)

This patch makes all the contribs plugins do it the same way.

Please give feedback on whether this is a real problem and whether my solution is the correct one to do.

Tim S.

NOTE: Patch is for windows project files only; I have not patched the Linux/Mac project files.

Removed Patch it was not fixing the real problem.

Tim S.
« Last Edit: June 03, 2012, 03:46:49 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Pre-Compiled header issue
« Reply #1 on: June 03, 2012, 10:52:10 am »
Hm, does the contrib plugins generate pch files? I think they shouldn't.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Pre-Compiled header issue
« Reply #2 on: June 03, 2012, 03:03:59 pm »
Hm, does the contrib plugins generate pch files? I think they shouldn't.

They all use the SDK.h pch; I believe they look in the wrong place if the setting is not the same.
Note: I have not confirm that this is true.

After testing, some of the plugins seem to ignore the correct PCH copy of sdk.h and instead used an old pch copy version of sdk.h.
So, my possible cause is NOT valid.


In other words, you are correct the option has no effect on where the PCH file is looked to be found.
Note: That means PCH is not really being used by most contrib plugins.

Tim S.
« Last Edit: June 03, 2012, 03:58:57 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org