Home | Download | ANTLRWorks | Wiki | About ANTLR | Feedback | Support | Bugs | v2


Latest version is 3.0.1
Download now! »

Download
» Home
» Download
» ANTLRWorks
» News
»Using ANTLR
» Documentation
» FAQ
» Articles
» Grammars
» File Sharing
» Runtime API
» Tech Support
» Bug Tracking
»About ANTLR
» What is ANTLR
» Why use ANTLR
» Showcase
» Testimonials
» Getting Started
» Software License
» ANTLR WebLogs
» ANTLR Workshops
»StringTemplate
»ANTLR v2
»Feedback
»Credits
»Contact


Support StringTemplate, ANTLR Project by making a donation! Terence often pays for things like the antlr.org server, conference travel, and this site design (that alone cost US$1000). Buy him a beer and pizza remotely ;)

Search



HOWTO compile antlr libs for MinGW

HOWTO compile antlr libs for MinGW

Steps

  1. Requirements:
    1. MinGW gcc compiler - get it here
    2. Msys environment - get it here
  2. Start Msys rxvt terminal
  3. extract antlr-2.7.1 - get it here
  4. tar -xvzf antlr-2.7.1.tar.gz
  5. cd antlr-2.7.1/lib/cpp
  6. ./configure
  7. cd src
  8. make
  9. make install
In the end libantlr.a will be copied to /usr/lib and antlr-2.7.1/antlr will be copied to /usr/include/antlr Note: If you do not want to do "make install" but still want to create libantlr.a then after "make" copy libantlr.a from antrl-2.7.1/lib/cpp/src/.libs