Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 7 developers from Canada and 18 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!


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: 21350

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




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