C++ Include problem

  • Thread starter Thread starter LifeWater
  • 1 comments
  • 485 views
Messages
66
Before I get into the nitty gritty, heres the basics. I'm just creating some simple functions to handle double-linked lists. I'm coding with the Dev-C++ compiler. So without getting into much code... heres my oh so simple problem

Here is a simplified version of my problem code

DLList.cpp
Code:
#include <iostream>
#include <string>
#include <iomanip>
#include "DLList.h"
 
using namespace std;
 

int main(){
	DLList *users;
	addtoFront(users);
	system("pause");   
	return 0;
}

My compiler gives me this error in DLList.cpp:
4 H:\MY STUFF\DLList\DLList.cpp In file included from DLList.cpp

Which is this line: #include "DLList.h"

Ive tried lots of things such as using the entire path of DLList.h, putting it like so: <DLList.h>, and also putting it within the main include directory that comes with Dev-C++. I keep getting this error, anyone know what I can do for this?
 
Back