Compiler Error C3921

Use of S-prefixed strings requires /clr:oldSyntax command line option

You do not need to explicitly specify that a string is a CLR string.


The following sample generates C3921.

// C3921.cpp
// compile with: /clr
using namespace System;

int main() {
   String ^ s = S"CLR string literal";   // C3921

   // try the following line instead
   String ^ s2 = "CLR string literal";