Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Stupid issue in visual studio


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
2 replies to this topic

#1 noatom   Members   -  Reputation: 785

Like
0Likes
Like

Posted 10 September 2013 - 07:30 AM

I'm using 2010,and compiling as a .dll

error C2143: syntax error : missing ';' before '*'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C2065: 'MTransporterIndices' : undeclared identifier
1error C2059: syntax error : '>'

Those are some of the errors i get,ALL of them are linked to:

MTransporterIndices & MTransporterVertex

 

I have each of those classes defined in it's own header file,with header guards.

 

So right above the class which contains:

MTransporterVertex** buffers_vertex[500];
MTransporterIndices** buffers_indices[500];
 
and 
 
vector<MTransporterVertex*> not_fullbuffers_vertex;
vector<MTransporterIndices*> not_fullbuffers_indices;
 
I HAVE THESE!
#include "MTransporterIndices.h"
#include "MTransporterVertex.h"
 
What in hell is wrong here?!

Edited by noatom, 10 September 2013 - 07:31 AM.


Sponsor:

#2 kunos   Crossbones+   -  Reputation: 2207

Like
1Likes
Like

Posted 10 September 2013 - 07:36 AM

nothing to do with visual studio.

You have a syntax error in your code.. probably a missing ";" or a missing forward declaration.


Stefano Casillo
Lead Programmer
TWITTER: @KunosStefano
AssettoCorsa - netKar PRO - Kunos Simulazioni

#3 noatom   Members   -  Reputation: 785

Like
1Likes
Like

Posted 10 September 2013 - 09:24 AM

Solved by prototyping the classes before actually including their header files.






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