Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

weird pointer errors in vs 2010

4: Adsense

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   

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

#2 L. Spiro   Members   

25466
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.