OT: recompile xharbour c-file
-
- Posts: 1102
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
OT: recompile xharbour c-file
Hi,
I have an old application, using 'xHarbour Compiler build 0.99.71 (SimpLex)'
In that version, there was a problem with the function directoryrecurse.
In the newer version it was fixed. How can I compile the newer c-file (direct.c), and link to my program, using my old library?
I have an old application, using 'xHarbour Compiler build 0.99.71 (SimpLex)'
In that version, there was a problem with the function directoryrecurse.
In the newer version it was fixed. How can I compile the newer c-file (direct.c), and link to my program, using my old library?
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
-
- Posts: 1102
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
Re: OT: recompile xharbour c-file
The problem is that I get this error if I compile the source
Are there some specials flags I have to use?
Code: Select all
Error E2303 direct.c 108: Type name expected
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: OT: recompile xharbour c-file
Marc,
Please post the source code for direct.c 108
Please post the source code for direct.c 108
-
- Posts: 1102
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
Re: OT: recompile xharbour c-file
Antonio,
This is line 108 in new latest release (the one with the error)
And this one with the old source than can be compiled
I think the problem is that I can't mix those 2 releases, because the new one is using the variable 'HB_FATTR' that is defined in the new 'Hbdefs.h', and not in the old one.
This is line 108 in new latest release (the one with the error)
Code: Select all
static void hb_fsGrabDirectory( PHB_ITEM pDir, const char * szDirSpec, HB_FATTR uiMask, PHB_FNAME fDirSpec, BOOL bFullPath, BOOL bDirOnly )
Code: Select all
static void hb_fsGrabDirectory( PHB_ITEM pDir, const char * szDirSpec, USHORT uiMask, PHB_FNAME fDirSpec, BOOL bFullPath, BOOL bDirOnly )
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: OT: recompile xharbour c-file
Marc,
Lets compare the source code for function directoryrecurse in both versions and then we fix the old one.
Please post the source code for function directoryrecurse in both versions here
Lets compare the source code for function directoryrecurse in both versions and then we fix the old one.
Please post the source code for function directoryrecurse in both versions here
-
- Posts: 1102
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
Re: OT: recompile xharbour c-file
Antonio,
This is the old one
http://www.vms.be/downloads/direct_old.c
This is the new one
http://www.vms.be/downloads/direct_new.c
This is the old one
http://www.vms.be/downloads/direct_old.c
This is the new one
http://www.vms.be/downloads/direct_new.c
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: OT: recompile xharbour c-file
Marc,
You can not use this new C file with your xHarbour version, sorry.
What is the bug that you have using DirectoryRecurse() ?
You can not use this new C file with your xHarbour version, sorry.
What is the bug that you have using DirectoryRecurse() ?
-
- Posts: 1102
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
Re: OT: recompile xharbour c-file
Antonio,
The bug is that I always get an empty array.
The bug is that I always get an empty array.
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: OT: recompile xharbour c-file
Marc,
Please build FWH/samples/elixir.prg to review if it may help you
Please build FWH/samples/elixir.prg to review if it may help you
-
- Posts: 1102
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
Re: OT: recompile xharbour c-file
Antonio,
Thank you, with the function into this example-file, I get all file files
Thank you, with the function into this example-file, I get all file files
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite