TIP: Click on subject to list as thread! ANSI
echo: tub
to: mark lewis
from: Bo Simonsen
date: 2003-11-10 16:01:12
subject: sqafix compilation errors

Hello mark!

09 Nov 03 19:58, you wrote to all:

 ml> preface: i do not /know/ C but have been able to wheedle my way thru
 ml> some problems in the past and even create a few very minor programs...
 ml> i can only point out what i see and ask questions or just wait for a
 ml> solution...

Okay.

 ml> in the sqafix sources retrieved from cvs.sourceforge.net, i get the
 ml> following errors...

 ml> =====
 ml> In file included from dw-def.h:34,
 ml>                  from dw-lst.h:35,
 ml>                  from sqafix.h:63,
 ml>                  from sqafix.c:62:
 ml> dw-saa.h:297: parse error before string constant
 ml> dw-saa.h:297: stray '\' in program
 ml> dw-saa.h:298: undefined or invalid # directive
 ml> =====

 ml> here're the lines in that section with line numbers added..

 ml> 293 #ifdef NDEBUG
 ml> 294 #  define ASSERT(p) ((void)0)
 ml> 295 #else
 ml> 296 #  define ASSERT(p) ((p) ? (void)0 : (void) fprintf(stderr, \
 ml> 297                      "Assertion failed: %s, file %s, line
%d\n\a",
 ml> \
 ml> 298                      #p, __FILE__, __LINE__ ) )
 ml> 299 #endif

Hmmm.. I can't understand why my gcc didn't fault on that one!

Try to do a CVS checkout.

 ml> i'm not sure i see the two afore mentioned problems...

 ml> =====
 ml> In file included from dw-lst.h:35,
 ml>                  from sqafix.h:63,
 ml>                  from sqafix.c:62:
 ml> dw-def.h:140: parse error before `USHORT'
 ml> dw-def.h:173: parse error before string constant
 ml> dw-def.h:173: stray '\' in program
 ml> dw-def.h:174: undefined or invalid # directive
 ml> =====

 ml> line 140 is...

 ml> (USHORT)0x0F00)

 ml> and in comparison with other lines containing USHORT in that
 ml> area, it is possible that it should read

 ml> ((USHORT)0x0F00)

No, the count of ( match the count of ), just the problem about \ in defines.

 ml> [this one i believe i have fixed as it hasn't shown up in subsequent
 ml> compile attempts...]


 ml> here're the lines in section 173/174 with line numbers added..

 ml> 169 #ifdef NDEBUG
 ml> 170 #  define ASSERT(p) ((void)0)
 ml> 171 #else
 ml> 172 #  define ASSERT(p) ((p) ? (void)0 : (void) AuxLog( \
                                            The problem -----^
 ml> 173                      "Assertion failed: %s, file %s, line
%d", \
 ml> 174                      #p, __FILE__, __LINE__ ) )
 ml> 175 #endif


 ml> this section is almost identicle to the one in dw-saa.h and the error
 ml> must be something similar if not the very same...

 ml> =====
 ml> In file included fron sqafix.c:62:
 ml> sqafix.h:261: undefined or invalid # directive
 ml> =====

 ml> here're the lines in that section with line numbers added..

 ml> 257 #ifdef NDEBUG
 ml> 258 #  define ASSERT(p) ((void)0)
 ml> 259 #else
 ml> 260 #  define ASSERT(p) ((p) ? (void)0 : (void) Assert( \
 ml> 261                      #p, __FILE__, __LINE__ ) )
 ml> 262 #endif

The same problem.

 ml> this section is almost identicle to the one in dw-saa.h and
 ml> dw-def.h... the error must be something similar if not the very same
 ml> as the other two...

 ml> in all three, i'm wanting to question, at least, the #p on the last
 ml> line... i have no idea on the "parse error before string constant"
 ml> errors...

 ml> i believe that once these few problems are handled, i'll be able to
 ml> conpile sqafix and thus complete a "make build" of a new install of
 ml> the maximus cvs tree...

What version of gcc do you use?

Regards,
Bo

--- GoldED+/LNX 1.1.4.7
* Origin: The Night Express - Roennede, Dk (2:236/100)
SEEN-BY: 633/267 270
@PATH: 236/100 237/9 20/11 106/1 2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.