G
G
Gokilla2018-02-10 18:26:59
C++ / C#
Gokilla, 2018-02-10 18:26:59

Missing type specifier - int assumed. Note. C++ doesn't support int by default?

//typedefs.h
#ifndef TYPEDEFS_H_INCLUDED
#define TYPEDEFS_H_INCLUDED
#include <Windows.h>
#include <GL/gl.h>
#include <GL/glu.h>
typedef GLfloat float__;
typedef char char__;
typedef GLvoid void__;
typedef GLint int__;
typedef GLboolean bool__;
typedef GLuint uint__;
typedef GLubyte uchar__;
typedef unsigned short ushort__;
#endif
//Scene.h
#include "typedefs.h"
#include <IL\il.h>
#include <IL\ilu.h>
#pragma comment(lib,"ILU.lib")
#pragma comment(lib,"DevIl.lib")
class Scene2
{
public:
    Scene();
    void__ SetData();
  void__ ShowBackGround();
  void__ EnableTexture(float__*texcoor, float__*vercoor);
protected:
  float__*NewTextureCoordinats,*NewVertexCoordinats;
  // Получение кода ошибки
  int__ err;
  // Получение строки с ошибкой
  char__*strError;
    // Ширина изображения
  int__ width;
  // Высота изображения
  int__ height;
  // Тип хранения данных
  uint__ type;
  // Индекс текстуры
  uchar__*copyData;
  uint__ IndexTexture;
}
//Scene.cpp
#include "Scene2.h"
Scene2::Scene()
{
  SetData();
  return 0;
}

throws an error :
scene2.h(10): error C4430: missing type specifier - assumed to be int. Note. C++ does not support int by default

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2018-02-10
@Gokilla

And what exactly in the text of the error do you not understand?
You have the Scene() function defined in the Scene2 class without explicitly specifying the type of the return value.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question