Hey all.
I'm currently writing a program in C++ using Dev-C++ 4.9.9.2, and running into a few problems. My code has gotten rather large, and I decided to seperate some of my functions into a seperate sourcefile, and keep the function prototypes in a header file, following the tutorial to the letter - now when I try to compile it, I get a mess of errors, and i'm not sure what i'm doing wrong - even the tutorial does the same thing now!
The functions source file:
Code:
#include"OurHeader.h"
The header file:
Code:
#ifndef OURHEADER_H
#define OURHEADER_H
void Function1();
void Function2();
#endif
Main file:
Code:
#include"OurHeader.h"
Now as far as I can tell that's all correct - or is it? I'm in a bit of a mess really, if anyone can point to a correct way of doing multiple files in Devc++, or perhaps point me in the way of a working tutorial, i'd be very grateful - thankyou. I thought the problem might be because I wasn't using a project - so I attempted putting all the files into the project, and got the same errors, the errors are as follows:
1 [Warning] `nul.gcda' is not a gcov data file
Then a rather lengthy list of things apparantly not being declared, as if I hadn't included the right includes, which I have
