I'm getting this error while I'm trying to compile ERP.PRG sample. I'm using FWH64, Habour 64 and BCC7164
I don't know if is there issues with Harbour and Borland on 64 bits
Mysql.h file is on FWH64 include folder
Please advise
┌────────────────────────────────────────────────────────────────────────────┐
?FiveWin for Harbour 20.06 bcc7 64bits Jun. 2020 xHarbour development power │▄
?(c) FiveTech 1993-2020 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 │█
└────────────────────────────────────────────────────────────────────────────┘?
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀?
Compiling...
Harbour 3.2.0dev (r1603181642)
Copyright (c) 1999-2016, http://harbour-project.org/
Compiling 'erp.prg' and generating preprocessed output to 'erp.ppo'...
Lines 5608, Functions/Procedures 8
Generating C source output to 'erp.c'... Done.
erp.prg(130) Warning W0001 Method <GetDataBases()> not declared or declaration mismatch in class <TMySQL>
erp.prg(144) Warning W0001 Method <GetTables()> not declared or declaration mismatch in class <TMySQL>
Embarcadero C++ 7.20 for Win64 Copyright (c) 2012-2016 Embarcadero Technologies, Inc.
erp.c:
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:199:
In file included from c:\bcc7164\include\windows\sdk\windef.h:25:
In file included from c:\bcc7164\include\windows\sdk\minwindef.h:183:
c:\bcc7164\include\windows\sdk\winnt.h:411:13: warning: redefinition of typedef 'INT' is a C11 feature
[-Wtypedef-redefinition]
typedef int INT;
^
c:\bcc7164\include\windows\sdk\minwindef.h:177:29: note: previous definition is here
typedef int INT;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:199:
In file included from c:\bcc7164\include\windows\sdk\windef.h:25:
In file included from c:\bcc7164\include\windows\sdk\minwindef.h:183:
c:\bcc7164\include\windows\sdk\winnt.h:1365:20: warning: declaration of 'struct _CONTEXT' will not be visible outside of
this function [-Wvisibility]
_Inout_ struct _CONTEXT *ContextRecord,
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:202:
c:\bcc7164\include\windows\sdk\winuser.h:1154:5: warning: declaration does not declare anything [-Wmissing-declarations]
MOUSEHOOKSTRUCT DUMMYSTRUCTNAME;
^~~~~~~~~~~~~~~
c:\bcc7164\include\windows\sdk\winuser.h:13112:5: warning: declaration does not declare anything
[-Wmissing-declarations]
MONITORINFO DUMMYSTRUCTNAME;
^~~~~~~~~~~
c:\bcc7164\include\windows\sdk\winuser.h:13117:5: warning: declaration does not declare anything
[-Wmissing-declarations]
MONITORINFO DUMMYSTRUCTNAME;
^~~~~~~~~~~
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:251:
In file included from c:\bcc7164\include\windows\sdk\winscard.h:31:
In file included from c:\bcc7164\include\windows\sdk\wtypes.h:23:
c:\bcc7164\include\windows\sdk/rpcndr.h:592:32: warning: redefinition of typedef 'PFORMAT_STRING' is a C11 feature
[-Wtypedef-redefinition]
typedef const unsigned char * PFORMAT_STRING;
^
c:\bcc7164\include\windows\sdk/rpcndr.h:565:32: note: previous definition is here
typedef const unsigned char * PFORMAT_STRING;
^
c:\bcc7164\include\windows\sdk/rpcndr.h:815:36: warning: redefinition of typedef 'MIDL_STUB_MESSAGE' is a C11 feature
[-Wtypedef-redefinition]
typedef struct _MIDL_STUB_MESSAGE MIDL_STUB_MESSAGE, *PMIDL_STUB_MESSAGE;
^
c:\bcc7164\include\windows\sdk/rpcndr.h:812:7: note: previous definition is here
} MIDL_STUB_MESSAGE, *PMIDL_STUB_MESSAGE;
^
c:\bcc7164\include\windows\sdk/rpcndr.h:815:58: warning: redefinition of typedef 'PMIDL_STUB_MESSAGE' is a C11 feature
[-Wtypedef-redefinition]
typedef struct _MIDL_STUB_MESSAGE MIDL_STUB_MESSAGE, *PMIDL_STUB_MESSAGE;
^
c:\bcc7164\include\windows\sdk/rpcndr.h:812:28: note: previous definition is here
} MIDL_STUB_MESSAGE, *PMIDL_STUB_MESSAGE;
^
c:\bcc7164\include\windows\sdk/rpcndr.h:1184:3: warning: redefinition of typedef 'MIDL_SYNTAX_INFO' is a C11 feature
[-Wtypedef-redefinition]
} MIDL_SYNTAX_INFO, *PMIDL_SYNTAX_INFO;
^
c:\bcc7164\include\windows\sdk/rpcndr.h:593:34: note: previous definition is here
typedef struct _MIDL_SYNTAX_INFO MIDL_SYNTAX_INFO, *PMIDL_SYNTAX_INFO;
^
c:\bcc7164\include\windows\sdk/rpcndr.h:1184:22: warning: redefinition of typedef 'PMIDL_SYNTAX_INFO' is a C11 feature
[-Wtypedef-redefinition]
} MIDL_SYNTAX_INFO, *PMIDL_SYNTAX_INFO;
^
c:\bcc7164\include\windows\sdk/rpcndr.h:593:53: note: previous definition is here
typedef struct _MIDL_SYNTAX_INFO MIDL_SYNTAX_INFO, *PMIDL_SYNTAX_INFO;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:251:
In file included from c:\bcc7164\include\windows\sdk\winscard.h:31:
In file included from c:\bcc7164\include\windows\sdk\wtypes.h:40:
c:\bcc7164\include\windows\sdk/wtypesbase.h:143:23: warning: redefinition of typedef 'UCHAR' is a C11 feature
[-Wtypedef-redefinition]
typedef unsigned char UCHAR;
^
c:\bcc7164\include\windows\sdk\minwindef.h:56:23: note: previous definition is here
typedef unsigned char UCHAR;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:251:
In file included from c:\bcc7164\include\windows\sdk\winscard.h:31:
In file included from c:\bcc7164\include\windows\sdk\wtypes.h:40:
c:\bcc7164\include\windows\sdk/wtypesbase.h:145:15: warning: redefinition of typedef 'SHORT' is a C11 feature
[-Wtypedef-redefinition]
typedef short SHORT;
^
c:\bcc7164\include\windows\sdk\winnt.h:408:15: note: previous definition is here
typedef short SHORT;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:251:
In file included from c:\bcc7164\include\windows\sdk\winscard.h:31:
In file included from c:\bcc7164\include\windows\sdk\wtypes.h:40:
c:\bcc7164\include\windows\sdk/wtypesbase.h:147:24: warning: redefinition of typedef 'USHORT' is a C11 feature
[-Wtypedef-redefinition]
typedef unsigned short USHORT;
^
c:\bcc7164\include\windows\sdk\minwindef.h:54:24: note: previous definition is here
typedef unsigned short USHORT;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:251:
In file included from c:\bcc7164\include\windows\sdk\winscard.h:31:
In file included from c:\bcc7164\include\windows\sdk\wtypes.h:40:
c:\bcc7164\include\windows\sdk/wtypesbase.h:149:15: warning: redefinition of typedef 'ULONG' is a C11 feature
[-Wtypedef-redefinition]
typedef DWORD ULONG;
^
c:\bcc7164\include\windows\sdk\minwindef.h:52:23: note: previous definition is here
typedef unsigned long ULONG;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:251:
In file included from c:\bcc7164\include\windows\sdk\winscard.h:31:
In file included from c:\bcc7164\include\windows\sdk\wtypes.h:40:
c:\bcc7164\include\windows\sdk/wtypesbase.h:499:17: warning: redefinition of typedef 'BOOLEAN' is a C11 feature
[-Wtypedef-redefinition]
typedef boolean BOOLEAN;
^
c:\bcc7164\include\windows\sdk\winnt.h:1093:15: note: previous definition is here
typedef BYTE BOOLEAN;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:251:
In file included from c:\bcc7164\include\windows\sdk\winscard.h:31:
c:\bcc7164\include\windows\sdk\wtypes.h:385:15: warning: redefinition of typedef 'LCID' is a C11 feature
[-Wtypedef-redefinition]
typedef DWORD LCID;
^
c:\bcc7164\include\windows\sdk\winnt.h:708:15: note: previous definition is here
typedef DWORD LCID;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:251:
In file included from c:\bcc7164\include\windows\sdk\winscard.h:31:
c:\bcc7164\include\windows\sdk\wtypes.h:390:16: warning: redefinition of typedef 'LANGID' is a C11 feature
[-Wtypedef-redefinition]
typedef USHORT LANGID;
^
c:\bcc7164\include\windows\sdk\winnt.h:710:16: note: previous definition is here
typedef WORD LANGID;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:251:
In file included from c:\bcc7164\include\windows\sdk\winscard.h:33:
c:\bcc7164\include\windows\sdk/winsmcrd.h:37:15: warning: redefinition of typedef 'ULONG' is a C11 feature
[-Wtypedef-redefinition]
typedef DWORD ULONG;
^
c:\bcc7164\include\windows\sdk/wtypesbase.h:149:15: note: previous definition is here
typedef DWORD ULONG;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:251:
In file included from c:\bcc7164\include\windows\sdk\winscard.h:33:
c:\bcc7164\include\windows\sdk/winsmcrd.h:39:14: warning: redefinition of typedef 'UCHAR' is a C11 feature
[-Wtypedef-redefinition]
typedef BYTE UCHAR;
^
c:\bcc7164\include\windows\sdk/wtypesbase.h:143:23: note: previous definition is here
typedef unsigned char UCHAR;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:251:
c:\bcc7164\include\windows\sdk\winscard.h:57:21: warning: redefinition of typedef 'LPCVOID' is a C11 feature
[-Wtypedef-redefinition]
typedef const VOID *LPCVOID;
^
c:\bcc7164\include\windows\sdk\minwindef.h:175:30: note: previous definition is here
typedef CONST void far *LPCVOID;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:260:
In file included from c:\bcc7164\include\windows\sdk\ole2.h:38:
In file included from c:\bcc7164\include\windows\sdk\objbase.h:28:
In file included from c:\bcc7164\include\windows\sdk\combaseapi.h:407:
c:\bcc7164\include\windows\sdk\objidlbase.h:150:37: warning: redefinition of typedef 'IRpcChannelBuffer' is a C11
feature [-Wtypedef-redefinition]
typedef interface IRpcChannelBuffer IRpcChannelBuffer;
^
c:\bcc7164\include\windows\sdk\combaseapi.h:393:41: note: previous definition is here
typedef interface IRpcChannelBuffer IRpcChannelBuffer;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:260:
In file included from c:\bcc7164\include\windows\sdk\ole2.h:38:
In file included from c:\bcc7164\include\windows\sdk\objbase.h:28:
In file included from c:\bcc7164\include\windows\sdk\combaseapi.h:407:
c:\bcc7164\include\windows\sdk\objidlbase.h:192:34: warning: redefinition of typedef 'IRpcStubBuffer' is a C11 feature
[-Wtypedef-redefinition]
typedef interface IRpcStubBuffer IRpcStubBuffer;
^
c:\bcc7164\include\windows\sdk\combaseapi.h:392:41: note: previous definition is here
typedef interface IRpcStubBuffer IRpcStubBuffer;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:260:
In file included from c:\bcc7164\include\windows\sdk\ole2.h:38:
In file included from c:\bcc7164\include\windows\sdk\objbase.h:29:
In file included from c:\bcc7164\include\windows\sdk\coml2api.h:42:
c:\bcc7164\include\windows\sdk\propidlbase.h:139:31: warning: redefinition of typedef 'PROPVARIANT' is a C11 feature
[-Wtypedef-redefinition]
typedef struct tagPROPVARIANT PROPVARIANT;
^
c:\bcc7164\include\windows\sdk\combaseapi.h:1341:31: note: previous definition is here
typedef struct tagPROPVARIANT PROPVARIANT;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:260:
In file included from c:\bcc7164\include\windows\sdk\ole2.h:39:
c:\bcc7164\include\windows\sdk\oleauto.h:1057:56: warning: redefinition of typedef 'LPTYPELIB' is a C11 feature
[-Wtypedef-redefinition]
typedef /* [unique] */ __RPC_unique_pointer ITypeLib *LPTYPELIB;
^
c:\bcc7164\include\windows\sdk/oaidl.h:3643:56: note: previous definition is here
typedef /* [unique] */ __RPC_unique_pointer ITypeLib *LPTYPELIB;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:260:
In file included from c:\bcc7164\include\windows\sdk\ole2.h:39:
c:\bcc7164\include\windows\sdk\oleauto.h:1065:14: warning: redefinition of typedef 'DISPID' is a C11 feature
[-Wtypedef-redefinition]
typedef LONG DISPID;
^
c:\bcc7164\include\windows\sdk/oaidl.h:610:14: note: previous definition is here
typedef LONG DISPID;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:260:
In file included from c:\bcc7164\include\windows\sdk\ole2.h:39:
c:\bcc7164\include\windows\sdk\oleauto.h:1066:16: warning: redefinition of typedef 'MEMBERID' is a C11 feature
[-Wtypedef-redefinition]
typedef DISPID MEMBERID;
^
c:\bcc7164\include\windows\sdk/oaidl.h:612:16: note: previous definition is here
typedef DISPID MEMBERID;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:260:
In file included from c:\bcc7164\include\windows\sdk\ole2.h:39:
c:\bcc7164\include\windows\sdk\oleauto.h:1089:57: warning: redefinition of typedef 'LPTYPEINFO' is a C11 feature
[-Wtypedef-redefinition]
typedef /* [unique] */ __RPC_unique_pointer ITypeInfo *LPTYPEINFO;
^
c:\bcc7164\include\windows\sdk/oaidl.h:2659:57: note: previous definition is here
typedef /* [unique] */ __RPC_unique_pointer ITypeInfo *LPTYPEINFO;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:260:
In file included from c:\bcc7164\include\windows\sdk\ole2.h:39:
c:\bcc7164\include\windows\sdk\oleauto.h:1096:57: warning: redefinition of typedef 'LPTYPECOMP' is a C11 feature
[-Wtypedef-redefinition]
typedef /* [unique] */ __RPC_unique_pointer ITypeComp *LPTYPECOMP;
^
c:\bcc7164\include\windows\sdk/oaidl.h:2481:57: note: previous definition is here
typedef /* [unique] */ __RPC_unique_pointer ITypeComp *LPTYPECOMP;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:260:
In file included from c:\bcc7164\include\windows\sdk\ole2.h:39:
c:\bcc7164\include\windows\sdk\oleauto.h:1103:26: warning: redefinition of typedef 'LPCREATETYPELIB' is a C11 feature
[-Wtypedef-redefinition]
typedef ICreateTypeLib * LPCREATETYPELIB;
^
c:\bcc7164\include\windows\sdk/oaidl.h:1755:40: note: previous definition is here
typedef /* [unique] */ ICreateTypeLib *LPCREATETYPELIB;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:260:
In file included from c:\bcc7164\include\windows\sdk\ole2.h:39:
c:\bcc7164\include\windows\sdk\oleauto.h:1105:27: warning: redefinition of typedef 'LPCREATETYPEINFO' is a C11 feature
[-Wtypedef-redefinition]
typedef ICreateTypeInfo * LPCREATETYPEINFO;
^
c:\bcc7164\include\windows\sdk/oaidl.h:974:41: note: previous definition is here
typedef /* [unique] */ ICreateTypeInfo *LPCREATETYPEINFO;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:260:
In file included from c:\bcc7164\include\windows\sdk\ole2.h:39:
c:\bcc7164\include\windows\sdk\oleauto.h:1207:57: warning: redefinition of typedef 'LPDISPATCH' is a C11 feature
[-Wtypedef-redefinition]
typedef /* [unique] */ __RPC_unique_pointer IDispatch *LPDISPATCH;
^
c:\bcc7164\include\windows\sdk/oaidl.h:2146:57: note: previous definition is here
typedef /* [unique] */ __RPC_unique_pointer IDispatch *LPDISPATCH;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:263:
c:\bcc7164\include\windows\sdk\commdlg.h:710:21: warning: redefinition of typedef 'CHOOSEFONT' is a C11 feature
[-Wtypedef-redefinition]
typedef CHOOSEFONTA CHOOSEFONT;
^
c:\bcc7164\include\windows\sdk\commdlg.h:695:21: note: previous definition is here
typedef CHOOSEFONTA CHOOSEFONT;
^
In file included from erp.prg:193:
In file included from c:\bcc7164\include\windows\sdk\windows.h:289:
c:\bcc7164\include\windows\sdk\imm.h:46:19: warning: redefinition of typedef 'LPUINT' is a C11 feature
[-Wtypedef-redefinition]
typedef UINT FAR *LPUINT;
^
c:\bcc7164\include\windows\sdk\mmsyscom.h:103:21: note: previous definition is here
typedef UINT FAR *LPUINT;
^
erp.prg:194:10: fatal error: 'mysql.h' file not found
#include <mysql.h>
^
33 warnings and 1 error generated.
* Linking errors *
C:\fwh64\samples>