[Hint] compilation flag

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Hint] compilation flag

Kunal Chauhan
Hi Team,
I have put comiplation flag in make file .
Like  -DENABLE_LED
In code like
File: db.cc

ifdef ENABLE_LED
  Funct()
{
}
#endif

File : db.h
#ifdef ENABLE_LED
Funct();
#endif

// for above to file db.so is created


Main.cc used the db.so


From docs I read but not understand I  the compilation flag concept.

Thnks
Kuna