Compiler Error C3174
module attribute was not specified
A program that uses Visual C++ attributes did not also use the module attribute, which is required in any program that uses attributes.
The following sample generates C3174:
// C3174.cpp
// C3174 expected
// uncomment the following line to resolve this C3174
// [module(name="x")];
[export]
struct S
{
int i;
};
int main()
{
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for