[vwnc] Syntax error in parsing stdlib.h in DLL/C?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] Syntax error in parsing stdlib.h in DLL/C?

Stefano Franchi
I am trying to go through the Builder example in the DLL/C documentation that
relies on the stdlib.h library. When trying to parse the header file, the
Builder  gives me a syntax error on the following line of the file:

#if defined _FORTIFY_SOURCE && _FORTIFY_SOURCE > 0 \
    && __GNUC_PREREQ (4, 1"/usr/include/features.h:" syntax error ->) &&
defined __OPTIMIZE__ && __OPTIMIZE__ > 0


Can anyone tell me what is going on? I am not familiar at all with DLL/C
(indeed, that/s why I was going through the docs step by step).


Thanks,

Stefano


______________________________________________________________
Stefano Franchi
Department of Philosophy          Ph:  (979) 862-2211
Texas A&M University              Fax: (979) 845-0458
305B Bolton Hall                  [hidden email]
College Station, TX 77843-4237
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Syntax error in parsing stdlib.h in DLL/C?

Alan Knight-2
The DLLCC parser is unfortunately quite old and not clever enough to deal with all of the constructs you find in a complex header file. It's almost certainly not going to be able to handle a large file like stdlib.h. I believe you'll also run into issues that the header file is going to want you to have defined the sorts of variables that the C preprocessor would have defined for that platform. You may be better off trying to parse the subset of definitions you actually need than trying to run through stdlib.h. There have been some efforts at redoing the parser to handle the current range of possibilities in header files, but nothing that is finished at this point.

At 12:23 PM 2009-12-17, Stefano Franchi wrote:
I am trying to go through the Builder example in the DLL/C documentation that
relies on the stdlib.h library. When trying to parse the header file, the
Builder  gives me a syntax error on the following line of the file:

#if defined _FORTIFY_SOURCE && _FORTIFY_SOURCE > 0 \
    && __GNUC_PREREQ (4, 1"/usr/include/features.h:" syntax error ->) &&
defined __OPTIMIZE__ && __OPTIMIZE__ > 0


Can anyone tell me what is going on? I am not familiar at all with DLL/C
(indeed, that/s why I was going through the docs step by step).


Thanks,

Stefano


______________________________________________________________
Stefano Franchi
Department of Philosophy          Ph:  (979) 862-2211
Texas A&M University              Fax: (979) 845-0458
305B Bolton Hall                  [hidden email]
College Station, TX 77843-4237
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

--
Alan Knight [|], Engineering Manager, Cincom Smalltalk

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc