Jump to content

  • Log In with Google      Sign In   
  • Create Account

weird pointer errors in vs 2010


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Adam West   Members   -  Reputation: 219

Like
0Likes
Like

Posted 12 August 2012 - 04:08 AM

hey there,

i was programming some network stuff and i went to complie and i was met with this message, could you help me becuase i see nothing wrong with my initialization of a pointer:

#include "main.h"

#include <irrNet.h>
MyNetCallback* netCallback = 0;
net::INetManager* netManager = 0;
int ping = 100;  //miliseconds will be calulated later
core::vector3df playerPosition;
core::vector3df playerAnimation; //no idea how to implement this yet

Error 1 error C2143: syntax error : missing ';' before '*'
Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int  7
Error 3 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Error 4 error C2061: syntax error : identifier 'MyNetCallback'

thanks guys, this forum is awesome

Sponsor:

#2 L. Spiro   Crossbones+   -  Reputation: 13574

Like
1Likes
Like

Posted 12 August 2012 - 04:11 AM

You didn’t include whatever file declares MyNetCallback.
If you feel you did, you need to post the contents of that file so we can see what is wrong with it.


L. Spiro
It is amazing how often people try to be unique, and yet they are always trying to make others be like them. - L. Spiro 2011
I spent most of my life learning the courage it takes to go out and get what I want. Now that I have it, I am not sure exactly what it is that I want. - L. Spiro 2013
I went to my local Subway once to find some guy yelling at the staff. When someone finally came to take my order and asked, “May I help you?”, I replied, “Yeah, I’ll have one asshole to go.”
L. Spiro Engine: http://lspiroengine.com
L. Spiro Engine Forums: http://lspiroengine.com/forums




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS