이 문제가 발생했으나 해결 방법을 잊어 버렸습니다.STL의 문자열 클래스를 사용할 수 없음
STL 문자열 클래스를 사용하고 싶지만 컴파일러가 찾지 못했다고 불평하고 있습니다. 다음은 완전한 .h 파일입니다.
#ifndef MODEL_H
#define MODEL_H
#include "../shared/gltools.h" // OpenGL toolkit
#include <math.h>
#include <stdio.h>
#include <string>
#include <iostream>
#include "Types.h"
class Model
{
public:
obj_type_ptr p_object;
char Load3DS (char *p_filename);
int LoadBitmap(char *filename);
int num_texture;
string fun("alex");
Model(char* modelName, char* textureFileName);
};
#endif
포함 파일을 찾을 수 없습니까? odd .... –
컴파일러 오류 메시지를 포함하십시오. 헤더 파일에 std ::를 접두어로 붙이지 않는 것처럼 보입니다. –