[antlr-interest] Newbie: C++ lib build errors

Ric Klaren ric.klaren at gmail.com
Tue Mar 27 09:49:47 PDT 2007


On 3/27/07, me 262 <me262c at gmail.com> wrote:
> c:\antlr\antlr-2.7.6\lib\cpp\src\dll.cpp(24) : fatal error C1189:
> #error :  "DLL Build not supported on old MSVC's"

This tells you that you can't build the support library into a DLL on
an old Microsoft compiler (version 6 and below). E.g. just compile a
static library. Also make sure to use the same linking settings for
the library and the project you're using the library in (e.g. the
multithreaded etc. settings)

> TokenStreamRewriteEngine.cpp
> c:\antlr\antlr-2.7.6\lib\cpp\src\tokenstreamrewriteengine.cpp(22) :
> error C2888: 'enum MIN_TOKEN_INDEX' : symbol cannot be defined within
> namespace 'antlr'
> c:\antlr\antlr-2.7.6\lib\cpp\src\tokenstreamrewriteengine.cpp(22) :
> fatal error C1903: unable to recover from previous error(s); stopping
> compilation
> Error executing cl.exe.

This should be fixed in the 2.7.7 release.



More information about the antlr-interest mailing list