The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
We recommend using Visual Studio 2017

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";