News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

custom build for .H (C header) files

Started by ggo98, August 13, 2012, 10:33:32 AM

Previous topic - Next topic

ggo98

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.

MortenMacFly

Quote from: ggo98 on August 13, 2012, 10:33:32 AM
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

ggo98

Hi Morten,

thank you for the answer.

Actually, "compile" is enabled.

I will try the nighty builds...

Thanks again,
Olivier.