'identifier' : constructor cannot return a value
A constructor cannot return a value or have a return type (not even a void return type).
Possible solution
The following sample generates C2534:
class A { public: int i; A() { i = 1; return i; // C2534, remove the return to resolve the error } }; void main() { }