problem while using #ifndef, .h file being added multiple times
Posted
by john
on Stack Overflow
See other posts from Stack Overflow
or by john
Published on 2010-04-18T19:53:03Z
Indexed on
2010/04/18
20:03 UTC
Read the original article
Hit count: 281
c++
|preprocessor
i am trying to use following pattern.
#ifndef TRACER_H
#include "Tracer.h"
#endif
This is statement is added to each file in the code such that tracer.h is added only once. Still i am getting an error saying multiple objects
Also Tracer.h contains
#ifndef TRACER_H
#define TRACER_H
© Stack Overflow or respective owner