delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/31/23:31:57

From: Deity <deity AT weirdness DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Help bison & flex compiling
Date: Mon, 01 Jun 1998 13:04:20 +1000
Organization: La Trobe University
Lines: 21
Message-ID: <35721A34.1C43C826@weirdness.com>
NNTP-Posting-Host: indyj.bendigo.latrobe.edu.au
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Using the standard Unix/Linux C compiler I specify:
cc -o blah y.tab.c lex.yy.c -ly -lfl
which will compile these sources fine, also
on a Unix system:
gcc -o blah y.tab.c lex.yy.c -ly -lfl
will also do what I want.
My main problem is that the gcc command will not work in dos/win95 or
environment. Is there a special command for linking the bison library?
gcc will noty recognize the -ly. I am running bison with the -yd
command, or yacc with the -d command.
Thanx for any help.
---------
Benjamin
"Control your life through insanity" - Cliff Burton R.I.P
"My thoughts collect, and settle themselves, like dirt beneath a kitchen
stove"
E-mail: deity AT weirdness DOT com
URL: http://upyrnose.home.ml.org
----------------------------------------------------------


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019