Page 1 of 1

Problem when compiling with Harbor

Posted: Mon Nov 30, 2020 3:10 pm
by Maurizio
Hello ,
I've been working with Harbor and FiveWin for years and I've never had a problem like this before.
I have a problem when compiling , with header file and case sensitive

I have this error

Code: Select all

Copyright (c) 1999-2020, https://harbour.github.io/
Righe.prg(5689) Warning W0001  Ambiguous reference 'ARRAY_IVE'[code]

The problem is that in the source I Have 

i :=  ascan(atotale[array_ive],. . . 

And in the header.ch 

#define ARRAY_IVE      4  

I understand the problem is uppercase and lowercase, but it always worked before.

I don't know if this happened after a Windows update

Regards Maurizo

Re: Problem when compiling with Harbor

Posted: Mon Nov 30, 2020 5:44 pm
by Antonio Linares
Dear Maurizio,

I would say that Harbour always worked like that

defines are case sensitive

Re: Problem when compiling with Harbor

Posted: Mon Nov 30, 2020 6:31 pm
by Enrico Maria Giordano
Yes, I confirm: #defines have always been case sensitive in all the languages that support them.

EMG

Re: Problem when compiling with Harbor

Posted: Tue Dec 01, 2020 10:28 am
by Maurizio
Thanks Antonio, Enrico

the strange thing is that it worked before, and on another PC it still works :?
Maurizio

Re: Problem when compiling with Harbor

Posted: Tue Dec 01, 2020 10:35 am
by Enrico Maria Giordano
Please post a sample.

EMG

Re: Problem when compiling with Harbor

Posted: Tue Dec 01, 2020 11:58 am
by Antonio Linares
Maurizio wrote:Thanks Antonio, Enrico

the strange thing is that it worked before, and on another PC it still works :?
Maurizio
maybe the lowercase define exists on your CH files