In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Cannot make use of external include files

Xailer English public forum
DC
Posts: 61
Joined: Mon May 16, 2011 6:06 pm

Cannot make use of external include files

Postby DC » Mon Jul 13, 2020 6:48 pm

Hi,

I tried searching the forum for

include


and


include file


, in the advanced search, but it says the words are too common, even "Include file" as a a phrase.


The Xailer build won't recognized externally specified include files.

So e.g. in Project Properties, if we have


C:\Xailer\Projects\ThisProject\Include ; c:\External\Include


, the Xailer compile/build still returns


Error F0029 Can't opein #include file 'thisinclude.ch'


, even though thisinclude.ch is in the

c:\External\Include

folder.

I've tried something similar, in Tools/Options, but same result.
User avatar
ignacio
Site Admin
Posts: 8691
Joined: Mon Apr 06, 2015 8:00 pm
Location: Madrid, Spain
Contact:

Re: Cannot make use of external include files

Postby ignacio » Tue Jul 14, 2020 5:17 pm

Hi,

So e.g. in Project Properties, if we have
C:\Xailer\Projects\ThisProject\Include ; c:\External\Include


Where exactly? It should be at the field 'More options' with the 'i' flag. -i<MyPath>

BTW, if you include the CH files in your project as any other file it will be enough to find it by the Harbour compiler.

Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
DC
Posts: 61
Joined: Mon May 16, 2011 6:06 pm

Re: Cannot make use of external include files

Postby DC » Tue Jul 14, 2020 5:45 pm

"It should be at the field 'More options' with the 'i' flag. -i<MyPath>"

This is what I need, thanks.

I was putting it after the Projects/Properties/include value, beginning with a semicolon. i also tried in the Tools/Options/Directories/Harbour, thus

G:\Xailer6\hb32\Include ; c:\External\Include

Everything's good now, thanks Ignacio.


ignacio wrote:Hi,

So e.g. in Project Properties, if we have
C:\Xailer\Projects\ThisProject\Include ; c:\External\Include


Where exactly? It should be at the field 'More options' with the 'i' flag. -i<MyPath>

BTW, if you include the CH files in your project as any other file it will be enough to find it by the Harbour compiler.

Regards,

Return to “English”