[antlr-interest] antlr on Microsoft Visual C++ 6 ...
Mark Kattenbelt
mark.kattenbelt at gmail.com
Mon Mar 27 09:22:29 PST 2006
Hello,
I have got it to work with MSVC 8.0 (VS 2005), with some difficulties on
the way. It seems as though the c++ runtime of antlr is biased towards
GNU compilers. (As then it compiles without any problem). If want GNU
compilers for windows have a look at cygwin and mingw/minsys. Antlr
works like a charm with with them. If you want an IDE, look at
code::blocks or dev-c++. I've compiled antlr with those IDE's
succesfully before.
Good luck,
Mark
> Mark Kattenbelt schrieb:
>> Hello Benjamin,
>>
>> Did you use precompiled headers? This solved some linker errors for
>> me. Also are you compiling it to be a dynamic or static library? What
>> flags did you define?
>
>
> Just found out that
> a) the symbols in the file antlr.lib delivered with the msi package
> may have been - or probably have been - produced by a different
> compiler and may be incompatible with VC6.
>
> b) building an antlr library myself is not possible with this compiler
> either - see line 24 in dll.cpp:
> # error "DLL Build not supported on old MSVC's"
>
> I'll go for a different compiler then. Thanks anyway.
>
> Cheers
> Benjamin
>
More information about the antlr-interest
mailing list