FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour link in my own library
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
link in my own library
Posted: Wed Apr 14, 2021 06:36 AM

Dear Antonio,
Can you please advise me on how I can link in my library or prg-files?
Should we link in compiled files or plain prg files?
Best regards,
Otto

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: link in my own library
Posted: Wed Apr 14, 2021 09:08 AM
Dear Otto,

You have to include your PRGs (or libraries) filenames in modharbour.hbp
https://github.com/FiveTechSoft/mod_harbour/blob/master/windows/modharbour.hbp

in apache.prg add your functions names as "extern"
https://github.com/FiveTechSoft/mod_harbour/blob/master/source/apache.prg

Finally run go64.bat and you will get your mod_harbour with your extra PRGs (or libraries) built in
https://github.com/FiveTechSoft/mod_harbour/blob/master/windows/go64.bat
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: link in my own library
Posted: Wed Apr 14, 2021 09:29 AM

Dear Antonio,
Thank you so much. I understand. How do I only include an external file for a single project without changing APACHE?
Best regards,
Otto

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: link in my own library
Posted: Wed Apr 14, 2021 10:21 AM

You may use:

include "myfile.prg"

better place it at the bottom of your main PRG

we use this in our developments :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: link in my own library
Posted: Wed Apr 14, 2021 01:11 PM

Dear Antonio,
Thank you so much.
Best regards,
Otto

Continue the discussion