Re: Query: how to set #define values in parameters of 'make'
From: Sharad Kala (no_spam.sharadk_ind_at_yahoo.com)
Date: 11/29/04
- Next message: Gerry Quinn: "Re: C++ sucks for games.... oh really?"
- Previous message: Sharad Kala: "Re: Why "throw std::string" is not correct?"
- In reply to: Tropos: "Query: how to set #define values in parameters of 'make'"
- Next in thread: Tropos: "Re: Query: how to set #define values in parameters of 'make'"
- Reply: Tropos: "Re: Query: how to set #define values in parameters of 'make'"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Nov 2004 16:50:41 +0530
"Tropos" <tropostropos@yahoo.co.uk> wrote in message
> I have a _TEST_ flag that I want to sometimes set for compilation,
> e.g.
>
> #if _TEST_
> #include "MyTestInterface.h"
> #else
> #include "MyRealInterface.h"
> #endif
>
> But I am in a version-controlled environment where there is a time
> penalty for checking out/checking in the source file or makefile. Is
> there any way I can say something like
>
> make -D_TEST_=1
>
> to set the value of _TEST_ for a single build?
This if offtopic here. But there is a way to achieve what you want. Ask in
news:news.gcc.help
Sharad
- Next message: Gerry Quinn: "Re: C++ sucks for games.... oh really?"
- Previous message: Sharad Kala: "Re: Why "throw std::string" is not correct?"
- In reply to: Tropos: "Query: how to set #define values in parameters of 'make'"
- Next in thread: Tropos: "Re: Query: how to set #define values in parameters of 'make'"
- Reply: Tropos: "Re: Query: how to set #define values in parameters of 'make'"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|