Przykład

#ifndef HEADER_H_
#define HEADER_H_

const int constant = 2.718;

#endif

Rozwiązanie
Nie inicjuj zmiennych w plikach nagłówkowych.

#ifndef HEADER_H_
#define HEADER_H_

#ifndef CONSTANT
#define CONSTANT 2.718
#endif

#endif