Check comment below for update
This is the error report: Cube_Life.obj : error LNK2019: unresolved external symbol "void __cdecl Draw_Coordinates(void)"
Please don't tell me to search, I did that but couldn't find a solution. I have a Help_Functions.h and a Help_Functions.cpp, with their contents shown below.
I declared the function Draw_Coordinates in the .h file and defined it in .cpp and I still get keep getting the error. Even when right clicking on the function and choosing to show the definition, it merely displays search results and it can't find the definition.
I even tried a simple function like void test(){return;} but still the same problem. They are not excluded from build either.
Help_Functions.h
#pragma once
#include "stdafx.h"
void test();
void Draw_Coordinates();
Help_Functions.cpp:
#include "stdafx.h"
void test(){return;}
void Draw_Coordinates()
{
//definition, it would be unnecessary to put all that code
}
stdafx.h:
#pragma once
#define PI 3.14159265359
#include "targetver.h"
#include <fstream>
#include <sstream>
#include <string>
#include <stdio.h>
#include <tchar.h>
#include <math.h>
#include <windows.h> // Standard Header For Most Programs
#include <gl/gl.h> // The GL Header File
#include <GL/glu.h>
#include <gl/glut.h> // The GL Utility Toolkit (Glut) Header
#include <stdlib.h>
#include <iostream>
#include "OBJECT_3D.h"
#include "Help_Functions.h"
using namespace std;
The weird thing is that OBJECT_3D is not causing any problems. The only difference I can think of is that it had its files created by Visual Studio, but Help_Functions where created individually by me.