--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/f015ee02-46fa-7641-79f6-f5d7dd34d9f7%40gmail.com.
#ifndef , not #ifdef
CH content is ok, order on PRG is wrong.
What PRG?
I do not know, except if review each of thousands PRGs.
HBMK2 group PRGs and CHs, and I receive the error without to know what is the PRG with problem.
file1..ch
#define X 1
#ifdef X
#undef X
#define X 2
#endif
file1.prg
#include "file1.ch"
#include "file2.ch"
file399.prg
#include "file2.ch"
#include "file1.ch"
Error on HBMK2:
gcc file1.prg file2.prg file3.prg file4.prg .... file450.prg
redefinition on ch
What is wrong PRG? No option except review each one prg
José M. C. Quintas
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/CANnDcfwAUpA8Jb%2BeeQaAEQTn1iayiOnADMr4NDkpepG8xwjkPA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/8198e9b2-e054-4b96-d22b-69d620f24d3b%40gmail.com.
Found, can't use -q on this situation.
Harbour consider error on CH, because error occurs processing CH
But in this situation error is on PRG, using incorrect order to
ch
test1.ch:1: warning W0002 Redefinition or duplicate definition of
#define x
Without -q ok
d:\temp>hbmk2 test.hbp
Compiling 'test1.prg'...
Lines 6, Functions/Procedures 0
Generating C source output to
'C:\Users\jmcqu\AppData\Local\Temp\hbmk_7o2dry.dir\test1.c'...
Done.
Compiling 'test2.prg'...
test1.ch:1: warning W0002 Redefinition or duplicate definition of
#define x
No code generated.
José M. C. Quintas
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/CANnDcfxq45AbEezhU%2B_QX19NiCv-WkBep%3DeaRDahTpV-%2BFra9g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/5cbe29d2-e828-6ad7-b567-896fdb07d241%40gmail.com.
problem was not about solve problem
problem was to discover what was the files
At the same time:
- message error is correct about kind of error
- message error is wrong, because do not show correct file
Once #include becomes part of PRG, seems that correct error
message could be PRG and #include line.
José M. C. Quintas
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/CANnDcfz-QmMvYLAPRVF%2B5S01RHo6Vbvqb%2Bne_beUNx62r7NeJw%40mail.gmail.com.
-ge[<mode>] error output <mode>:
0=Clipper (default)
1=IDE friendly
Current error message may be considered not compatible with -ge1 IDE friendly
from prg #include line I know about ch file name, but from ch
name I can't to know about prg name
José M. C. Quintas