forGGe's Nexus

Thoughts on Open Source, Linux, Embedded and System programming

Recent Articles:


How to control header include from command line in GCC

In following sections, I will describe how to control which header must be included in your source files via command-line parameters of GCC.

The Case

Imagine that you have a simple application, consisting of just two files:

One main.c file:

#include "foo.h"

int main(void)
{
    print_foo();
    return 0 …

Hello, World!

Finally, my first blog is running. Cheers to everyone who reading this!

Nothing special about this article in particular. It exists only for testing purposes.

While this blog is getting more useful stuff, you can either leave your comment below or check About Me page.