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
link in my own library
- Otto
- Posts: 6418
- Joined: Fri Oct 07, 2005 7:07 pm
- Has thanked: 43 times
- Been thanked: 2 times
- Contact:
link in my own library
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
- Antonio Linares
- Site Admin
- Posts: 42723
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 93 times
- Been thanked: 106 times
- Contact:
Re: link in my own library
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
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
- Otto
- Posts: 6418
- Joined: Fri Oct 07, 2005 7:07 pm
- Has thanked: 43 times
- Been thanked: 2 times
- Contact:
Re: link in my own library
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
Thank you so much. I understand. How do I only include an external file for a single project without changing APACHE?
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
- Antonio Linares
- Site Admin
- Posts: 42723
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 93 times
- Been thanked: 106 times
- Contact:
Re: link in my own library
You may use:
#include "myfile.prg"
better place it at the bottom of your main PRG
we use this in our developments
#include "myfile.prg"
better place it at the bottom of your main PRG
we use this in our developments

- Otto
- Posts: 6418
- Joined: Fri Oct 07, 2005 7:07 pm
- Has thanked: 43 times
- Been thanked: 2 times
- Contact:
Re: link in my own library
Dear Antonio,
Thank you so much.
Best regards,
Otto
Thank you so much.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************