Author Topic: Code::Blocks always add #ifndef HEADER_ on some .h files  (Read 2664 times)

Offline FredCL

  • Single posting newcomer
  • *
  • Posts: 1
Code::Blocks always add #ifndef HEADER_ on some .h files
« on: August 04, 2026, 07:47:03 pm »
Hello,

I don't know why on my project only on one file Code::blocks always add
#ifndef HEADER_9598362C9F593684
#define HEADER_9598362C9F593684
at the beginning of the file

the file already have a
#ifndef _FRAMEAPP_H_
#define _FRAMEAPP_H_

The file is encoded in UTF8.
How to avoid this unwanted adding ?


Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1890
Re: Code::Blocks always add #ifndef HEADER_ on some .h files
« Reply #1 on: August 04, 2026, 09:28:20 pm »
There is a plugin called Header Fixup (or a similar name), disable it.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9733
Re: Code::Blocks always add #ifndef HEADER_ on some .h files
« Reply #2 on: Yesterday at 06:34:11 pm »
It seems you have installed / activated a plugin called "Header Guard" (headerguard.dll).
De-activate or un-install this plugin if you don't need it and this will be gone.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ