Problem when compiling with Harbor

Problem when compiling with Harbor

Postby Maurizio » Mon Nov 30, 2020 3:10 pm

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]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
User avatar
Maurizio
 
Posts: 825
Joined: Mon Oct 10, 2005 1:29 pm

Re: Problem when compiling with Harbor

Postby Antonio Linares » Mon Nov 30, 2020 5:44 pm

Dear Maurizio,

I would say that Harbour always worked like that

defines are case sensitive
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem when compiling with Harbor

Postby Enrico Maria Giordano » Mon Nov 30, 2020 6:31 pm

Yes, I confirm: #defines have always been case sensitive in all the languages that support them.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Problem when compiling with Harbor

Postby Maurizio » Tue Dec 01, 2020 10:28 am

Thanks Antonio, Enrico

the strange thing is that it worked before, and on another PC it still works :?
Maurizio
User avatar
Maurizio
 
Posts: 825
Joined: Mon Oct 10, 2005 1:29 pm


Re: Problem when compiling with Harbor

Postby Antonio Linares » Tue Dec 01, 2020 11:58 am

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
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Surasak and 64 guests