I do not know if this is a bug, but as I remember, #include files are
search in "current dir" allways
Using this code:
func main
#include "myfile.ch"
return nil
with 3 directories:
1) "Current dir", where myfile.ch is located
2) Dir for pba.prg
3) Dir for Harbour
result in:
- Windows, BCC551
F:\clipnet>\harbour808\harbour\bin\harbour.exe \basedat\sisgen\pba.prg
Harbour 1.0.0 Intl. (Rev. 9175)
Copyright (c) 1999-2008, http://www.harbour-project.org/
Compiling '\basedat\sisgen\pba.prg'...
Lines 239, Functions/Procedures 2
Generating C source output to 'pba.c'... Done.
- OS/2, gcc
[M:\clipnet]e:\harbour808\harbour\bin\harbour.exe \basedat\sisgen\pba.prg
Harbour 1.0.0 Intl. (Rev. 9175)
Copyright (c) 1999-2008, http://www.harbour-project.org/
Compiling '\basedat\sisgen\pba.prg'...
\basedat\sisgen\pba.prg(2) Error F0029 Can't open #include file:
'myfile.ch'
1 error
No code generated
- Linux Mandriva 2008.1, gcc
[EMAIL PROTECTED] clipnet]# /harbour808/harbour/bin/harbour
/mnt/win_c/basedat/sisgen/pba.prg
Harbour 1.0.0 Intl. (Rev. 9175)
Copyright (c) 1999-2008, http://www.harbour-project.org/
Compiling '/mnt/win_c/basedat/sisgen/pba.prg'...
/mnt/win_c/basedat/sisgen/pba.prg(2) Error F0029 Can't open #include
file: 'myfile.ch'
1 error
No code generated
David Macias
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour