grrr, more errors
:(
ok, i commented out the lines below because they were erroring out and i am running this on windows:
still, im getting the errors below:Code:#ifdef PLATFORM_LINUX
// linux includes
//# include <sys/socket.h>
//# include <netinet/in.h>
//# include <arpa/inet.h>
//# include <netdb.h>
//# include <unistd.h>
Code:C:\QRBG\src>cl /EHsc example0.cpp QRBG.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
example0.cpp
QRBG.cpp
QRBG.cpp(198) : error C2065: 'AF_INET' : undeclared identifier
QRBG.cpp(198) : error C2065: 'SOCK_STREAM' : undeclared identifier
QRBG.cpp(198) : error C3861: 'socket': identifier not found
QRBG.cpp(205) : error C2079: 'addr' uses undefined struct 'QRBG::Connect::socka
dr_in'
QRBG.cpp(206) : error C3861: 'gethostbyname': identifier not found
QRBG.cpp(208) : error C2228: left of '.sin_addr' must have class/struct/union
type is 'int'
QRBG.cpp(208) : error C2228: left of '.s_addr' must have class/struct/union
QRBG.cpp(208) : error C3861: 'inet_addr': identifier not found
QRBG.cpp(210) : error C2228: left of '.sin_addr' must have class/struct/union
type is 'int'
QRBG.cpp(210) : error C2027: use of undefined type 'QRBG::Connect::hostent'
QRBG.cpp(206) : see declaration of 'QRBG::Connect::hostent'
QRBG.cpp(210) : error C2227: left of '->h_addr' must point to class/struct/unio
/generic type
QRBG.cpp(210) : error C2027: use of undefined type 'QRBG::Connect::hostent'
QRBG.cpp(206) : see declaration of 'QRBG::Connect::hostent'
QRBG.cpp(210) : error C2227: left of '->h_length' must point to class/struct/un
on/generic type
QRBG.cpp(211) : error C2228: left of '.sin_family' must have class/struct/union
type is 'int'
QRBG.cpp(211) : error C2065: 'AF_INET' : undeclared identifier
QRBG.cpp(212) : error C2228: left of '.sin_port' must have class/struct/union
type is 'int'
QRBG.cpp(212) : error C3861: 'htons': identifier not found
QRBG.cpp(214) : error C3861: 'connect': identifier not found
QRBG.cpp(225) : error C3861: 'shutdown': identifier not found
QRBG.cpp(231) : error C3861: 'close': identifier not found
QRBG.cpp(252) : error C2065: 'timeStart' : undeclared identifier
QRBG.cpp(252) : error C3861: 'gettimeofday': identifier not found
QRBG.cpp(268) : error C2065: 'timeEnd' : undeclared identifier
QRBG.cpp(268) : error C3861: 'gettimeofday': identifier not found
QRBG.cpp(352) : error C3861: 'htons': identifier not found
QRBG.cpp(357) : error C3861: 'htonl': identifier not found
QRBG.cpp(359) : error C3861: 'send': identifier not found
QRBG.cpp(397) : error C3861: 'recv': identifier not found
QRBG.cpp(416) : error C2065: 'u_long' : undeclared identifier
QRBG.cpp(416) : error C2059: syntax error : ')'
QRBG.cpp(416) : error C3861: 'ntohl': identifier not found
QRBG.cpp(452) : error C3861: 'recv': identifier not found
QRBG.cpp(499) : error C2065: 'timeEnd' : undeclared identifier
QRBG.cpp(499) : error C2065: 'timeStart' : undeclared identifier
QRBG.cpp(532) : error C2065: 'timeEnd' : undeclared identifier
QRBG.cpp(532) : error C2228: left of '.tv_sec' must have class/struct/union
type is ''unknown-type''
QRBG.cpp(532) : error C2065: 'timeStart' : undeclared identifier
QRBG.cpp(532) : error C2228: left of '.tv_sec' must have class/struct/union
type is ''unknown-type''
QRBG.cpp(532) : error C2065: 'timeEnd' : undeclared identifier
QRBG.cpp(532) : error C2228: left of '.tv_usec' must have class/struct/union
type is ''unknown-type''
QRBG.cpp(532) : error C2065: 'timeStart' : undeclared identifier
QRBG.cpp(532) : error C2228: left of '.tv_usec' must have class/struct/union
type is ''unknown-type''
Generating Code...