Я получаю «объявление не объявляет ничего [-fpermissive] error»; Вот мой код;декларация ничего не объявляет [-fpermissive] error
#ifndef CAMERA_H
#define CAMERA_H
#include "Vector.h"
#include <string>
using namespace std;
class Camera
{
private:
int id;
float position[3];
Vector gaze;
Vector up;
float left;
float right;
float bottom;
float top;
float near;
float far;
int type;
public:
Camera(int i,string c, string g, string u, string f, string t);
int getID() {return id; }
float* getPosition() { return position; }
Vector getGaze() { return gaze; }
Vector getUp() { return up; }
float getLeft() {return left;}
float getRight() {return right;}
float getBottom() {return bottom;}
float getTop() {return top;}
float getNear() {return near;}
float getFar() {return far;}
int getType() {return type;}
};
#endif // CAMERA_H
ошибка начинается с "float near;" и продолжается следующие 3 строки.
В чем причина этой ошибки и как ее исправить.
Вы точно скопировали код? –
Что находится в «Vector.h»? –
@ KristianD'Amato Да, я скопировал правильно. – xxlali