I got this error message:
multiple definition of `GamepadControll::GamepadControll()'
After being frustrated for hours I reduced the code to:
GamepadControll.h:
#ifndef GAMEPADCONTROLL_H_
#define GAMEPADCONTROLL_H_
#include <iostream>
class GamepadControll {
public:
GamepadControll();
virtual ~GamepadControll();
};
#endif /* GAMEPADCONTROLL_H_ */
GamepadControl.cpp:
#include "GamepadControll.h"
GamepadControll::GamepadControll() {
std::cout << "Hello, I work!" << std::endl;
}
GamepadControll::~GamepadControll() {
// TODO Auto-generated destructor stub
}
But I just get this error message!
//Edit: Main isn't defined.. Can't I run only a class without mainfiles like in java? Here is the whole eclipse Project: http:/ul.to/m37d2z