const char *const HOST_NAME = "Board1";
Just replace #define HOST_NAME "MYBOARD1"
with const char *const HOST_NAME = "Board1";
(in your header).
#define
should be used in rare circumstances (like include guards) only. Otherwise you might get strange errors.
I figured that out, its working when I change id dhcp.h file.
but this will affect all projects as dhcp.h and dhcp.ccp are library files in arduino.
this library is used by various other projects.
I need to store values for host name in program, so each project has different host name depending on boards
I need to assign value in project file, not library files.