Thanks for the suggestion.
I tried removing tankmain.h, as it has nothing in it yet (I removed it from the make file, main file and deleted the file itself) And I still receive the same error.
I then added everything back in and tried putting the .h files in this order.
Code:
#include "tankmain.h"
#include "world.h"
and I still receive the same error.
Maybe this will help clarify the problem.. This is the content of my world.h and make file
world.h // pardon the class's I am not entierly sure if they are correct it some of the stuff im learning at the moment
Code:
#ifndef __WORLD_H__
#define __WORLD_H__
#include <math.h>
using namespace std;
class boundaryType {
public:
float x1,y1,x2,y2;
};
class world2D {
public:
float degToRad (float);
int Xdev(void);
int Ydev(void);
}
#endif
Makefile
Code:
tankmain.exe : tankmain.o graphics.o world.o
g++ -Wl,-s -o tankmain.exe tankmain.o graphics.o world.o
tankmain.o : tankmain.cpp tankmain.h graphics.h
g++ -c -fpermissive -fconserve-space tankmain.cpp
world.o : world.cpp world.h
g++ -c -fpermissive -fconserve-space world.cpp
graphics.o : graphics.cpp graphics.h
g++ -c -fpermissive -fconserve-space graphics.cpp
again thanks for the help !