[antlr-interest] Warning while compiling C++ library in VC 7.1

Ney, Richard richard.ney at aspect.com
Mon Nov 17 14:24:52 PST 2003


Ric,

You can place this pragma into the headers. Might have to surround it
with a #ifdef block for VC++ but it will silence the warnings.

////////////////////////////////////////////////////////////////////////
////
// STL is an inline library, so its OK for the class to not have a DLL 
// interface.
#pragma warning(disable : 4251)

We use this in our other libraries that use STL.

-Richard

-----Original Message-----
From: Ric Klaren [mailto:klaren at cs.utwente.nl] 
Sent: Friday, November 14, 2003 2:21 AM
To: antlr-interest at yahoogroups.com
Subject: Re: [antlr-interest] Warning while compiling C++ library in VC
7.1

On Thu, Nov 13, 2003 at 11:32:11AM -0800, Ney, Richard wrote:
> I getting a bunch of 4251 warnings and was wondering if others are
> seeing these warnings and are the affecting the resulting library.
> 
> c:\Program Files\Microsoft Visual Studio .NET
> 2003\Vc7\include\vector(1673) : warning C4251:
> 'std::vector<_Ty,_Ax>::_Myvec' : class 'std::vector<_Ty,_Ax>' needs to
> have dll-interface to be used by clients of class
'std::vector<_Ty,_Ax>'

You are using a development snapshot ? You followed the instructions
from
the lib/cpp/README ? You are trying a static library or a dll ? 

There are probably still some small things with vc7.1 but maybe i've
broken
something since the last report I had. Coming weeks I'll probably try to
fix up the mess that is VC6-7.1 in the code atm so we can start on
prereleases for the next version.

Cheers,

Ric
-- 
-----+++++*****************************************************+++++++++
-------
    ---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893722  ----
-----+++++*****************************************************+++++++++
-------
  Chaos often breeds life, when order breeds habit.
  --- Henry B. Adams, The Education of Henry Adams


 

Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/ 



 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list