[antlr-interest] Re: Building antlr libs on MS Visual C++ 6 SP5
Ric Klaren
klaren at cs.utwente.nl
Tue Jul 29 05:35:00 PDT 2003
Hi,
On Mon, Jul 28, 2003 at 08:49:06PM -0000, Aaron Nauman wrote:
> The development version fixes the DLL import/export issues.
Nice.
> I did some testing to try to determine which versions of VC6 require
> the template instantiations. I tried compiling with SP3 and SP4 of
> VC6 and neither seemed to require their use. I am going to try to get
> a hold of VC7 tomorrow and try that.
They once were added for the DLL build of VC6 if I recall right. Although
in the development snapshot the VC7 versions prevailed mostly. The original
VC6 versions looked like (using some MS extension ?):
#if defined(_MSC_VER) && !defined(__ICL) // Microsoft Visual C++
extern template class ANTLR_API ASTRefCount<AST>;
#endif
> Any idea what versions require all the template instantiations? There
> seem to be a quite a few added to the development version, so I guess
> someone must know.
All the new ones are for VC7 DLL build, they are probably harmless for a
static build in VC7. The ones of the format:
#if defined(_MSC_VER) && !defined(__ICL) // Microsoft Visual C++
template class ANTLR_API ASTRefCount< AST >;
template class ANTLR_API ANTLR_USE_NAMESPACE(std)allocator< RefAST >;
template class ANTLR_API ANTLR_USE_NAMESPACE(std)vector< RefAST >;
#endif
My guess is that there needs to be some selection macro for the right
template-curses for the right version of VC (for the right build type).
Cheers,
Ric
--
-----+++++*****************************************************+++++++++-------
---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893722 ----
-----+++++*****************************************************+++++++++-------
Innovation makes enemies of all those who prospered under the old
regime, and only lukewarm support is forthcoming from those who would
prosper under the new. --- Niccolò Machiavelli
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list