link in my own library
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Wed Apr 14, 2021 6:36 am
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
Re: link in my own library
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Wed Apr 14, 2021 9:08 am
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.hbpin apache.prg add your functions names as "extern"
https://github.com/FiveTechSoft/mod_harbour/blob/master/source/apache.prgFinally 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
Re: link in my own library
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Wed Apr 14, 2021 9:29 am
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
Re: link in my own library
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Wed Apr 14, 2021 10:21 am
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
![Smile :-)](./images/smilies/icon_smile.gif)
Re: link in my own library
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Wed Apr 14, 2021 1:11 pm
by Otto
Dear Antonio,
Thank you so much.
Best regards,
Otto