socket libraries problem
Posted: Fri Jul 30, 2010 1:33 pm
Hello,
I have this bunch of errors i think they are because codelite doesnt know where to find them..
#include <sys/socket.h>
#include <sys/select.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
C:/Program Files/CodeLite/h264_C++/os.cpp:124: error: aggregate 'sockaddr_in sa_in' has incomplete type and cannot be defined
C:/Program Files/CodeLite/h264_C++/os.cpp:125: error: 'inet_addr' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:127: error: 'AF_INET' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:127: error: 'SOCK_DGRAM' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:127: error: 'socket' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:132: error: 'ntohl' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:135: error: 'SOL_SOCKET' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:135: error: 'SO_REUSEADDR' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:136: error: 'setsockopt' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:150: error: 'memset' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:151: error: 'htons' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:155: error: 'bind' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:162: error: 'ntohl' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:164: error: aggregate 'ip_mreqn aMulticastReq' has incomplete type and cannot be defined
C:/Program Files/CodeLite/h264_C++/os.cpp:166: error: 'INADDR_ANY' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:168: error: 'IPPROTO_IP' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:168: error: 'IP_ADD_MEMBERSHIP' was not declared in this scope
And...
#include <netinet/in.h>
----------Building project:[ codigoConexion - Debug ] (Single File Build)----------
g++ -c "C:/Program Files/CodeLite/h264_C++/session.cpp" -g -o ./Debug/session.o "-I." "-I."
C:/Program Files/CodeLite/h264_C++/session.cpp:6:24: error: netinet/in.h: No such file or directory
C:/Program Files/CodeLite/h264_C++/session.cpp: In member function 'void RTSPSession::read()':
C:/Program Files/CodeLite/h264_C++/session.cpp:491: error: 'u_int16_t' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/session.cpp:491: error: expected primary-expression before ')' token
C:/Program Files/CodeLite/h264_C++/session.cpp:491: error: 'ntohs' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/session.cpp:523: error: 'sleep' was not declared in this scope
Im using windows and codelite 2.6.0.4189. Thankd in advance for your help.
I have this bunch of errors i think they are because codelite doesnt know where to find them..
#include <sys/socket.h>
#include <sys/select.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
C:/Program Files/CodeLite/h264_C++/os.cpp:124: error: aggregate 'sockaddr_in sa_in' has incomplete type and cannot be defined
C:/Program Files/CodeLite/h264_C++/os.cpp:125: error: 'inet_addr' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:127: error: 'AF_INET' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:127: error: 'SOCK_DGRAM' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:127: error: 'socket' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:132: error: 'ntohl' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:135: error: 'SOL_SOCKET' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:135: error: 'SO_REUSEADDR' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:136: error: 'setsockopt' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:150: error: 'memset' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:151: error: 'htons' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:155: error: 'bind' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:162: error: 'ntohl' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:164: error: aggregate 'ip_mreqn aMulticastReq' has incomplete type and cannot be defined
C:/Program Files/CodeLite/h264_C++/os.cpp:166: error: 'INADDR_ANY' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:168: error: 'IPPROTO_IP' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/os.cpp:168: error: 'IP_ADD_MEMBERSHIP' was not declared in this scope
And...
#include <netinet/in.h>
----------Building project:[ codigoConexion - Debug ] (Single File Build)----------
g++ -c "C:/Program Files/CodeLite/h264_C++/session.cpp" -g -o ./Debug/session.o "-I." "-I."
C:/Program Files/CodeLite/h264_C++/session.cpp:6:24: error: netinet/in.h: No such file or directory
C:/Program Files/CodeLite/h264_C++/session.cpp: In member function 'void RTSPSession::read()':
C:/Program Files/CodeLite/h264_C++/session.cpp:491: error: 'u_int16_t' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/session.cpp:491: error: expected primary-expression before ')' token
C:/Program Files/CodeLite/h264_C++/session.cpp:491: error: 'ntohs' was not declared in this scope
C:/Program Files/CodeLite/h264_C++/session.cpp:523: error: 'sleep' was not declared in this scope
Im using windows and codelite 2.6.0.4189. Thankd in advance for your help.