Stupid issue in visual studio

Started by
1 comment, last by noatom 10 years, 7 months ago

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?!
Advertisement

nothing to do with visual studio.

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

Stefano Casillo
TWITTER: [twitter]KunosStefano[/twitter]
AssettoCorsa - netKar PRO - Kunos Simulazioni

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

This topic is closed to new replies.

Advertisement