Ok so first off, I've recently returned to C++, and I'm very new to both OpenGL, and Code::Blocks IDE (used to use Bloodshed Dev before) .. so please don't flame me if there's a basic solution to this
I'm trying to read a ".asc" file which has the vertices of a model I want to replicate using Glut (please don't mention assimp at the moment, because at my level all that just went over my head)
Anyways, I made a new project OpenGL in Code::Blocks, (I've installed freeglut so there's no problem there for sure), and basically when using the code below, the output I get is "0"
#include <GL/glut.h>
#include <stdlib.h>
#include<iostream>
#include<fstream>
#include<string>
using namespace std;
int main(int *argcp, char **argv)
{
ifstream myfile("test.txt");
cout<<myfile.is_open();
return 0;
}
Which is the problem I'm facing. If I make an OpenGL project, I can't read even a basic text file, and when I make a basic empty project then I can read the file but glut doesn't work and I get errors saying "undefined reference to '_imp____glutInitWithExit@12' and such.
I'm pretty sure I must be doing something wrong, because something so basic shouldn't be so trivial. If anyone out here could help me bypass this simple obstacle, that would be great