|
From: Hugo V. <ha...@me...> - 2005-03-02 16:20:46
|
hi there,
i'm compiling the following code:
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <netinet/in.h> /* definition of struct sockaddr_in */
#include <netdb.h> /* definition of gethostbyname */
#include <arpa/inet.h> /* definition of inet_ntoa */
#include <unistd.h> /* definition of close */
#define TIMESTAMP 100
class Stub
{
public:
Stub();
~Stub();
int acceptClient(int server_fd);
int createServer(int port);
void reset();
void run(int ms);
private:
int fd;
fd_set rfds;
};
#endif //_STUB_H_
and i get the following errors:
Compiler: Default compiler
Building Makefile: "C:\Home\MyProjects\webots\controllers\Omni\Makefile.win"
Executing make...
make.exe -f "C:\Home\MyProjects\webots\controllers\Omni\Makefile.win" all
g++.exe -c main.cpp -o main.o -I"lib/gcc/mingw32/3.4.2/include"
-I"include/c++/3.4.2/backward" -I"include/c++/3.4.2/mingw32"
-I"include/c++/3.4.2" -I"include" -I"C:/Program Files/Webots/include"
-I"C:/Program Files/Webots/include/device" -I"C:/Program
Files/Webots/include/ode" -I"C:/Program Files/Webots/include/physics"
-I"C:/Home/Programs/Dev-Cpp/include" -ansi -fexceptions -fshort-double
-fexpensive-optimizations -march=i686
In file included from main.cpp:6:
stub.h:5:24: sys/socket.h: No such file or directory
stub.h:7:63: netinet/in.h: No such file or directory
stub.h:8:58: netdb.h: No such file or directory
stub.h:9:54: arpa/inet.h: No such file or directory
In file included from main.cpp:6:
stub.h:27: error: `fd_set' does not name a type
make.exe: *** [main.o] Error 1
Execution terminated
I'm Using WinXP SP2 and the Dev-c++ 4.9.9.2
anyclues?
thank you
|