error C2143: syntax error : missing ';' before '*'
-
I am using VS 2010 Professional. I am getting the error:
error C2143: syntax error : missing ';' before '*'
From:
Unmanaged *pu;
I assume there is something very simple that I am overlooking. This problem can be easily re-created. I re-created it by creating a Visual C++ CLR Class Librsry project. Then I used the Class Wizard to create an unmanaged class called Unmanaged. Then in the managed Class1 class I added the line shown above. Then I built that without any other changes and got the error. I do not understand why.
-
I am using VS 2010 Professional. I am getting the error:
error C2143: syntax error : missing ';' before '*'
From:
Unmanaged *pu;
I assume there is something very simple that I am overlooking. This problem can be easily re-created. I re-created it by creating a Visual C++ CLR Class Librsry project. Then I used the Class Wizard to create an unmanaged class called Unmanaged. Then in the managed Class1 class I added the line shown above. Then I built that without any other changes and got the error. I do not understand why.
There is obviously something missing in your code such that the term
Unmanaged
is not being correctly interpreted by the compiler. Perhaps if you post your class definition also, someone can figure out what's wrong.Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
There is obviously something missing in your code such that the term
Unmanaged
is not being correctly interpreted by the compiler. Perhaps if you post your class definition also, someone can figure out what's wrong.Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
I am an idiot. I forgot to #include "Unmanaged.h". I definitely know better but for some reason I did not use my brain.
Sam Hobbs wrote:
for some reason I did not use my brain.
You are now a certified developer; it's something we all do from time to time.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman