Condividi tramite


Errore del compilatore C3174

L'attributo module non è stato specificato

Osservazioni:

Un programma che usa gli attributi di Visual C++ non usa anche l'attributo module, obbligatorio in qualsiasi programma che usa attributi.

Example

L'esempio seguente genera l'errore C3174:

// C3174.cpp
// C3174 expected
// uncomment the following line to resolve this C3174
// [module(name="x")];
[export]
struct S
{
   int i;
};

int main()
{
}