Here's the line of code in main to create a guided tour:
GuidedTour testTour = new GuidedTour("Test", "Test2", 100.00, 1, "Test3", "Test4");
Do you know why I get this error when I hit make?
1 2 3 4 5 6
> make
g++ -ansi -Wall -pedantic -o tour main.cpp tour.cpp tour.h guidedTour.cpp guidedTour.h
main.cpp: In function 'int main()':
main.cpp:34: error: conversion from 'GuidedTour*' to non-scalar type 'GuidedTour' requested
*** Error code 1
make: Fatal error: Command failed for target `tour'
> make
g++ -ansi -Wall -pedantic -o tour main.cpp tour.cpp tour.h guidedTour.cpp guidedTour.h
Undefined first referenced
symbol in file
vtable for GuidedTour /var/tmp//cclcunVb.o
ld: fatal: Symbol referencing errors. No output written to tour
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `tour'
>
> g++ --version
g++ (GCC) 4.3.1
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Can't change it by the way, our program has to compile on the university's system.
Ouch, 4.3.1 is horribly outdated (the latest is 4.8.1).
You should still compile with a more modern version to get better error messages that make more sense, then you can see if it compiles with the ancient version.
If you paste your source code in e.g. pastebin I can show you what the messages are from my compiler.