set HB_COMPAT_XPP

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2061
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

set HB_COMPAT_XPP

Post by AUGE_OHR »

hi,

i just have read this
This function is only visible if source/rtl/browdb.prg was compiled with the HB_COMPAT_XPP flag
em. aaah ... how to set HB_COMPAT_XPP at compile time :?:
under Cl*pper / Xbase++ i can use /D ... how with harbour :?:
have fun
Jimmy
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: set HB_COMPAT_XPP

Post by bpd2000 »

AUGE_OHR wrote: Sat Dec 14, 2019 7:34 am hi,

i just have read this
This function is only visible if source/rtl/browdb.prg was compiled with the HB_COMPAT_XPP flag
em. aaah ... how to set HB_COMPAT_XPP at compile time :?:
under Cl*pper / Xbase++ i can use /D ... how with harbour :?:
Check difference with : hbmk2 test.prg /dTEST
and hbmk2 test.prg
Also check after comment //#define SECOND with hbmk2 test.prg /dTEST

Code: Select all

#ifndef TEST
#warning Warning: This sample must be tested using /dTEST compiler flag
#endif

#define FIRST
#define SECOND
#define THIRD

PROCEDURE Main()

   ? "testing Harbour /d compiler flag"

   #ifdef TEST
      ? "Fine, you have just tested the /d compiler flag"
   #else
      ? "Please use /dTEST compiler flag"
      ? "Or run 'set HB_USER_PRGFLAGS=/dTEST' if you are using the GNU Make System"
   #endif

   #ifdef FIRST
      ? "FIRST is defined"

      #ifdef SECOND
         ? "FIRST and SECOND are defined"

         #ifdef THIRD
            ? "FIRST, SECOND and THIRD are defined"
         #else
            ? "THIRD is not defined"
         #endif

      #else
         ? "SECOND is not defined"
      #endif

   #else
      ? "FIRST is not defined"
   #endif

   RETURN
BPD
Convert Dream into Reality through HMG
User avatar
AUGE_OHR
Posts: 2061
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: set HB_COMPAT_XPP

Post by AUGE_OHR »

THX
have fun
Jimmy
Post Reply