I'm trying to make a simple obj loader to practice with 3D, and I thought I'd use std::string to handle text. However when I tell the compiler to #include <string> it gives me "error string: no such file or directory", weird as it only does it for this one specific project. The first place I looked was Google, and I got one result relevent to my situation and it didn't give a solution to my problem. Here is my code:
Code:
#include "global.h"
#include <string> <------------------ the line giving me trouble, wherever I put it in the project
typedef struct vertex
{
float x, y, z;
} vert;
typedef struct face
{
vert points[4];
} face;
typedef struct object
{
int noOfVerts;
int noOfFaces;
face *faces;
} obj;
obj *edlObj(std::string file); <----- this line gives me "syntax error before :"
void render(obj object);