/* Error: mpd.h:5:19: Warnung: mehrere Token am Ende der Direktive #include */ /* file: test.cpp */ #include #include "mpd.h" using namespace std; int main(int argc, char *argv[]) { //Mpd client; return 0; } /* beginning of file: mpd.h */ #include #include #include #include #include "mpd.cpp"; using namespace std; /* ... */ /* file: mpd.cpp */ bool Mpd::connect(const string hostname, const long port) { struct sockaddr_in addr; socket_handle = socket(AF_INET, SOCK_STREAM, 0); if (s == -1) return false; /* some additional code.... */ return true; }