link in my own library

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

link in my own library

Postby Otto » Wed Apr 14, 2021 6: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: link in my own library

Postby Antonio Linares » Wed Apr 14, 2021 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: link in my own library

Postby Otto » Wed Apr 14, 2021 9: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: link in my own library

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: link in my own library

Postby Otto » Wed Apr 14, 2021 1:11 pm

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
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm


Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 3 guests