1

Multiple-definition error for classes in Eclipse

view story
linux-howto

http://stackoverflow.com – I have a "multiple definition" error in Eclipse when trying to include a file called sniffer.h. sniffer.h: #ifndef SNIFFER_H_ #define SNIFFER_H_ #include "sys/types.h" #include "sys/socket.h" #include "netinet/in.h" #include "netdb.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <ctype.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <iostream> #include <sstream> #include <fstream> #include <queue> #include <pthread.h> #i (HowTos)