S
sb
Hello. I have three files in a VC++6 project - a header file called
Schedule.h, an implementation class called Schedule.cpp and a test class
with main called TestSchedule1.cpp. It compiles fine in VC++ and in Unix,
but when I run it in VC++ 6, I get several linking errors (55 to be exact).
Can anyone tell me how to resolve this? Funny thing is, someone showed me
how to resolve this like a year ago and it was pretty simple, but I've
completely forgotten!! Also, in runs fine when compiling with g++.
I'm going to include how the files are laid from from a preprocessor/header
perspective as I believe that's where the problem is...
Schedule.h:
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
Schedule.cpp:
#include "Schedule.h"
TestSchedule1.cpp:
#include "Schedule.cpp"
This is really frustrating and would greatly appreciate some help. Thanks in
advance!
Schedule.h, an implementation class called Schedule.cpp and a test class
with main called TestSchedule1.cpp. It compiles fine in VC++ and in Unix,
but when I run it in VC++ 6, I get several linking errors (55 to be exact).
Can anyone tell me how to resolve this? Funny thing is, someone showed me
how to resolve this like a year ago and it was pretty simple, but I've
completely forgotten!! Also, in runs fine when compiling with g++.
I'm going to include how the files are laid from from a preprocessor/header
perspective as I believe that's where the problem is...
Schedule.h:
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
Schedule.cpp:
#include "Schedule.h"
TestSchedule1.cpp:
#include "Schedule.cpp"
This is really frustrating and would greatly appreciate some help. Thanks in
advance!