help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Defines not being caught


From: Thierry
Subject: Defines not being caught
Date: 18 Nov 2005 09:09:02 -0800
User-agent: G2/0.2

Let's say I have the following CPP file which include some header file:


/** test.cpp **/
#include "hello.h"


/** hello.h **/
#ifdef HELLO_THERE
#include "someotherfile.h"
#endif

Assuming I'm building the test.cpp file only with the compiler flag
-DHELLO_THERE, how come in "hello.h", it's not even aware of
HELLO_THERE.  That is, it skips the #ifdef HELLO_THERE.

Any help please?

Thanks Thierry



reply via email to

[Prev in Thread] Current Thread [Next in Thread]