RAD Studio
ContentsIndex
PreviousUpNext
E2331: Number of allowable option contexts exceeded (C++)

You have interspersed too many source-code option changes (using #pragma option) between template declarations. For example:

#pragma option -x

 

template<class T> class foo1 { };

 

#pragma option -a3

 

template<class T> class foo2 { };

 

#pragma option -b

 

template<class T> class foo3 { };
#pragma option -k-

You need to break your source code into smaller files.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!