Originally Posted by
Daved
You have to add all the cpp files to your Dev-C++ project. It will compile each separately and then link them together. When it links them it will find the one (and only one) with a main(). If it complains about WinMain, perhaps you created the wrong kind of project.
I'm not doing a dev-c++ project, but I have a program like so:
Code:
//small test program
#include "dtime.h" //digitaltime class
#include <iostream>
#include <ctype.h>
#include <stdlib.h>
using namespace std;
int main()
{
DigitalTime current(1, 0), previous(2, 0);
cin >> current;
cout << current;
system("PAUSE");
return 0;
}
When I link the digitaltime implementation file, it works fine. However, my book is saying that if I change the implementation file, all I need to do is recompile it and relink, and I won't even have to recompile the above code. That's what I'm trying to figure out how to do. I can post the direct quote if you want.
EDIT: Eh, well, even if I figured out how to compile the implementation, It doesn't look like dev-c++ can link without compiling, so I probably can't just relink. Thanks for your other help.