link in my own library

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!
Post Reply
User avatar
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

Post by Otto »

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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
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

Post by Antonio Linares »

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
User avatar
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

Post by Otto »

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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
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

Post by Antonio Linares »

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
User avatar
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

Post by Otto »

Dear Antonio,
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
********************************************************************
Post Reply