rendered paste body/* Error: mpd.h:5:19: Warnung: mehrere Token am Ende der Direktive #include */
/* file: test.cpp */
#include <iostream>
#include "mpd.h"
using namespace std;
int main(int argc, char *argv[]) {
//Mpd client;
return 0;
}
/* beginning of file: mpd.h */
#include <sys/socket.h>
#include <arpa/inet.h>
#include <vector>
#include <string>
#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;
}