FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Include modified ERRSYSW.PRG
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Include modified ERRSYSW.PRG
Posted: Wed Apr 29, 2015 09:59 AM
Guys:

I usually include a modified ERRSYSW.PRG with this instruction at the bottom of my main PRG:
Code (fw): Select all Collapse
#include "c:\fwh\source\function\errsysw.prg"

Now, I'm getting the following compile error:
Code (fw): Select all Collapse
c:\fwh\source\function\errsysw.prg(24) Error E0004  STATIC declaration follows executable statement

The offending line is:
Code (fw): Select all Collapse
//----------------------------------------------------------------------------//

static bUserAction

//----------------------------------------------------------------------------//


Any ideas on how can I link the modified errsysw.prg using the buildx.bat command ? Thank you very much.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Include modified ERRSYSW.PRG
Posted: Wed Apr 29, 2015 10:35 AM

Gustavo,

Don't use a #include

Just compile it and link it as another PRG of your app

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: Include modified ERRSYSW.PRG
Posted: Wed Apr 29, 2015 06:37 PM
Antonio:

I did that and put the following on the BUILDX.BAT, but the linker errors out:
Code (fw): Select all Collapse
echo %bcdir%\lib\c0w32.obj + > b32.bc
echo %1.obj, + >> b32.bc
echo errsysw.obj, + >> b32.bc    <--- new line (the file exists on the folder)
echo %1.exe, + >> b32.bc

Code (fw): Select all Collapse
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Fatal: Too many DEF file names: c:\fwh\lib\FiveHC.lib
* Linking errors *


Any ideas ?
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: Include modified ERRSYSW.PRG
Posted: Wed Apr 29, 2015 07:00 PM
I think if you remove comma after %1.obj it will work.

Code (fw): Select all Collapse
    echo %bcdir%\lib\c0w32.obj + > b32.bc
    echo %1.obj + >> b32.bc        <--- remove comma here
    echo errsysw.obj, + >> b32.bc    <--- new line (the file exists on the folder)
    echo %1.exe, + >> b32.bc
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: Include modified ERRSYSW.PRG
Posted: Thu Apr 30, 2015 02:12 PM

Gale:

Thank you very much ! Just a comma ? Hehehe

Continue the discussion