home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!haven.umd.edu!darwin.sura.net!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!unidui!Germany.EU.net!mcsun!ub4b!news.cs.kuleuven.ac.be!blekul11!frmop11!barilvm!bimacs!fine
- From: fine@bimacs.BITNET (Linochka Fine)
- Newsgroups: comp.lang.c
- Subject: LEX and Borland C++ 3.1 incompatibility.
- Message-ID: <4448@bimacs.BITNET>
- Date: 12 Nov 92 17:10:02 GMT
- References: <1dbpe8INNcop@frigate.doc.ic.ac.uk> <a_rubin.720993308@dn66> <1ddvpdINNc3d@frigate.doc.ic.ac.uk>
- Organization: Math department, Bar-Ilan University, Ramat-Gan, ISRAEL
- Lines: 30
-
-
- Hi everybody !
-
- Since in my local host nobody was able to answer my question, I post it
- here. I made my project using YACC and LEX for PC, and MSC 6.0. It worked
- fine. But after some time I've decided to transfer it to Borland C Compiler,
- since, unfortunately, most of PC C programmers prefer it (although I am sure,
- that MicroSoft is best), and so it will be more easy to maintenance it by
- the next generation of students... After recompiling the sources I've got a
- pile of warnings in the my "yylex.c" file, but I just didn't pay attention
- to it, since MSC C also looked unhappy when it compiled it. But when I
- tried to run the program, it produced something unreasonable... After some
- debugging I've released that the problem is in the "yylex" function. I wrote
- simple test in LEX, and it didn't work properly too. It seems, that the
- problems are in the "yylook" subroutine, and they are caused from the
- "Suspicious pointer conversion" warning. I.e., I think, that when it
- tries to get values from the tables (offsets etc), it get them wrong. I even
- tried to do some hacking on "ncform.c" LEX driver in order to fix it, but
- unsuccessfully. (probably the code is too complicated for me).
-
- So, if anybody was faced with this problem, or even has alternative version
- of LEX, please e-mail me. I use the fully undocumentated LEX and YACC,
- and I even don't remember from where did I get them. The LEX seems to be
- compiled by Microsoft compiler (the message "Microsoft Run-Time Library 1990"
- in the code).
-
- Thank's in advance, hoping to receive responds,
- Mosha.
-
-
-