Author Topic: custom build for .H (C header) files  (Read 4213 times)

Offline ggo98

  • Single posting newcomer
  • *
  • Posts: 2
custom build for .H (C header) files
« on: August 13, 2012, 10:33:32 am »
Hello all,

sorry if this has already been answered, but I do not find the solution.

I would like to use the compiler and debugger settings, advanced options to do some stuff on C header files (.h files).

Adding a custom command for a specific file extension does work well, but not for .h header files.
(I'm using Codeblocks 10.05)

Does someone know if there is there a way to do this please?

Thanks in advance for any pointer, help or info.
Olivier.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: custom build for .H (C header) files
« Reply #1 on: August 13, 2012, 05:18:01 pm »
but not for .h header files.
(I'm using Codeblocks 10.05)
A lot things have changes since 10.05 so first of all you should try with a nightly.
Then if its still, not working, you should verify that you actually enabled "compile" for this file, as header files are usually not built (except PCH). Compilers compile source files, you know...
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

Offline ggo98

  • Single posting newcomer
  • *
  • Posts: 2
Re: custom build for .H (C header) files
« Reply #2 on: August 14, 2012, 02:17:15 pm »
Hi Morten,

thank you for the answer.

Actually, "compile" is enabled.

I will try the nighty builds...

Thanks again,
Olivier.