E2331 Number of allowable option contexts exceeded (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

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.