RAD Studio |  |

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:

Copy Code

    #pragma option -x

Copy Code

    template<class T> class foo1 { };

Copy Code

    #pragma option -a3

Copy Code

    template<class T> class foo2 { };

Copy Code

    #pragma option -b

Copy Code

    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!