Questo è il log di compilazione!


Compilatore: Default compiler
Esecuzione di g++.exe...
g++.exe "D:\Documents and Settings\magnus\Desktop\client1.cpp" -o "D:\Documents and Settings\magnus\Desktop\client1.exe" -I"f:\Dev-Cpp\include" -I"f:\Dev-Cpp\include\c++" -I"f:\Dev-Cpp\include" -L"f:\Dev-Cpp\lib"
D:/Documents and Settings/magnus/Desktop/client1.cpp:29: `argc' was not
declared in this scope
D:/Documents and Settings/magnus/Desktop/client1.cpp:29: `argv' was not
declared in this scope
D:/Documents and Settings/magnus/Desktop/client1.cpp:30: ISO C++ forbids
declaration of `main' with no type
D:/Documents and Settings/magnus/Desktop/client1.cpp:30: initializer list being
treated as compound expression
D:/Documents and Settings/magnus/Desktop/client1.cpp:30: syntax error before `
int'
D:/Documents and Settings/magnus/Desktop/client1.cpp:31: array size missing in
`argv'
D:/Documents and Settings/magnus/Desktop/client1.cpp:32: parse error before `{'
token
D:/Documents and Settings/magnus/Desktop/client1.cpp:45: ISO C++ forbids
declaration of `WSAStartup' with no type
D:/Documents and Settings/magnus/Desktop/client1.cpp:45: `int WSAStartup'
redeclared as different kind of symbol
f:/Dev-Cpp/include/winsock2.h:490: previous declaration of `int
WSAStartup(short unsigned int, WSADATA*)'
D:/Documents and Settings/magnus/Desktop/client1.cpp:45: initializer list being
treated as compound expression
D:/Documents and Settings/magnus/Desktop/client1.cpp:45: invalid conversion
from `WSADATA*' to `int'
D:/Documents and Settings/magnus/Desktop/client1.cpp:47: ISO C++ forbids
declaration of `memset' with no type
D:/Documents and Settings/magnus/Desktop/client1.cpp:47: `int memset'
redeclared as different kind of symbol
f:/Dev-Cpp/include/string.h:56: previous declaration of `void* memset(void*,
int, unsigned int)'
D:/Documents and Settings/magnus/Desktop/client1.cpp:47: initializer list being
treated as compound expression
D:/Documents and Settings/magnus/Desktop/client1.cpp:48: syntax error before `.
' token
D:/Documents and Settings/magnus/Desktop/client1.cpp:63: ISO C++ forbids
declaration of `exit' with no type
D:/Documents and Settings/magnus/Desktop/client1.cpp:63: `int exit' redeclared
as different kind of symbol
f:/Dev-Cpp/include/stdlib.h:336: previous declaration of `void exit(int)'
D:/Documents and Settings/magnus/Desktop/client1.cpp:64: parse error before `}'
token
D:/Documents and Settings/magnus/Desktop/client1.cpp:76: ISO C++ forbids
declaration of `ptrh' with no type
D:/Documents and Settings/magnus/Desktop/client1.cpp:76: invalid conversion
from `hostent*' to `int'
D:/Documents and Settings/magnus/Desktop/client1.cpp:77: parse error before `if
'
D:/Documents and Settings/magnus/Desktop/client1.cpp:79: ISO C++ forbids
declaration of `exit' with no type
D:/Documents and Settings/magnus/Desktop/client1.cpp:79: redefinition of `int
exit'
D:/Documents and Settings/magnus/Desktop/client1.cpp:63: `int exit' previously
defined here
D:/Documents and Settings/magnus/Desktop/client1.cpp:80: parse error before `}'
token
D:/Documents and Settings/magnus/Desktop/client1.cpp:81: base operand of `->'
is not a pointer
D:/Documents and Settings/magnus/Desktop/client1.cpp:81: base operand of `->'
is not a pointer
D:/Documents and Settings/magnus/Desktop/client1.cpp:81: ISO C++ forbids
declaration of `memcpy' with no type
D:/Documents and Settings/magnus/Desktop/client1.cpp:81: `int memcpy'
redeclared as different kind of symbol
f:/Dev-Cpp/include/string.h:54: previous declaration of `void* memcpy(void*,
const void*, unsigned int)'
D:/Documents and Settings/magnus/Desktop/client1.cpp:81: initializer list being
treated as compound expression
D:/Documents and Settings/magnus/Desktop/client1.cpp:85: parse error before `if
'
D:/Documents and Settings/magnus/Desktop/client1.cpp:87: ISO C++ forbids

declaration of `exit' with no type
D:/Documents and Settings/magnus/Desktop/client1.cpp:87: redefinition of `int
exit'
D:/Documents and Settings/magnus/Desktop/client1.cpp:79: `int exit' previously
defined here
D:/Documents and Settings/magnus/Desktop/client1.cpp:88: parse error before `}'
token
D:/Documents and Settings/magnus/Desktop/client1.cpp:92: ISO C++ forbids
declaration of `sd' with no type

D:/Documents and Settings/magnus/Desktop/client1.cpp:92: redefinition of `int

sd'
D:/Documents and Settings/magnus/Desktop/client1.cpp:36: `int sd' previously
declared here
D:/Documents and Settings/magnus/Desktop/client1.cpp:93: parse error before `if
'

D:/Documents and Settings/magnus/Desktop/client1.cpp:95: ISO C++ forbids
declaration of `exit' with no type
D:/Documents and Settings/magnus/Desktop/client1.cpp:95: redefinition of `int
exit'
D:/Documents and Settings/magnus/Desktop/client1.cpp:87: `int exit' previously
defined here
D:/Documents and Settings/magnus/Desktop/client1.cpp:96: parse error before `}'

token

D:/Documents and Settings/magnus/Desktop/client1.cpp:102: ISO C++ forbids
declaration of `exit' with no type
D:/Documents and Settings/magnus/Desktop/client1.cpp:102: redefinition of `int
exit'
D:/Documents and Settings/magnus/Desktop/client1.cpp:95: `int exit' previously
defined here

D:/Documents and Settings/magnus/Desktop/client1.cpp:103: parse error before `}
' token
D:/Documents and Settings/magnus/Desktop/client1.cpp:106: ISO C++ forbids
declaration of `n' with no type
D:/Documents and Settings/magnus/Desktop/client1.cpp:106: redefinition of `int
n'
D:/Documents and Settings/magnus/Desktop/client1.cpp:39: `int n' previously
declared here
D:/Documents and Settings/magnus/Desktop/client1.cpp:107: ISO C++ forbids
declaration of `printf' with no type
D:/Documents and Settings/magnus/Desktop/client1.cpp:107: `int printf'
redeclared as different kind of symbol
f:/Dev-Cpp/include/stdio.h:213: previous declaration of `int printf(const
char*, ...)'
D:/Documents and Settings/magnus/Desktop/client1.cpp:107: initializer list
being treated as compound expression
D:/Documents and Settings/magnus/Desktop/client1.cpp:107: invalid conversion

from `char*' to `int'
D:/Documents and Settings/magnus/Desktop/client1.cpp:109: parse error before `
while'
D:/Documents and Settings/magnus/Desktop/client1.cpp:110: ISO C++ forbids
declaration of `scanf' with no type
D:/Documents and Settings/magnus/Desktop/client1.cpp:110: `int scanf'
redeclared as different kind of symbol
f:/Dev-Cpp/include/stdio.h:233: previous declaration of `int scanf(const char*,
...)'
D:/Documents and Settings/magnus/Desktop/client1.cpp:110: initializer list
being treated as compound expression
D:/Documents and Settings/magnus/Desktop/client1.cpp:110: invalid conversion
from `char*' to `int'
D:/Documents and Settings/magnus/Desktop/client1.cpp:111: ISO C++ forbids
declaration of `send' with no type
D:/Documents and Settings/magnus/Desktop/client1.cpp:111: `int send' redeclared
as different kind of symbol
f:/Dev-Cpp/include/winsock2.h:479: previous declaration of `int send(unsigned
int, const char*, int, int)'
D:/Documents and Settings/magnus/Desktop/client1.cpp:111: initializer list
being treated as compound expression
D:/Documents and Settings/magnus/Desktop/client1.cpp:112: ISO C++ forbids
declaration of `sprintf' with no type
D:/Documents and Settings/magnus/Desktop/client1.cpp:112: `int sprintf'
redeclared as different kind of symbol
f:/Dev-Cpp/include/stdio.h:214: previous declaration of `int sprintf(char*,
const char*, ...)'
D:/Documents and Settings/magnus/Desktop/client1.cpp:112: initializer list

being treated as compound expression
D:/Documents and Settings/magnus/Desktop/client1.cpp:112: invalid conversion
from `const char*' to `int'
D:/Documents and Settings/magnus/Desktop/client1.cpp:113: ISO C++ forbids
declaration of `m' with no type
D:/Documents and Settings/magnus/Desktop/client1.cpp:113: redefinition of `int
m'

D:/Documents and Settings/magnus/Desktop/client1.cpp:42: `int m' previously
declared here

D:/Documents and Settings/magnus/Desktop/client1.cpp:114: parse error before `

if'
D:/Documents and Settings/magnus/Desktop/client1.cpp:123: ISO C++ forbids
declaration of `exit' with no type
D:/Documents and Settings/magnus/Desktop/client1.cpp:123: redefinition of `int
exit'
D:/Documents and Settings/magnus/Desktop/client1.cpp:102: `int exit' previously
defined here
D:/Documents and Settings/magnus/Desktop/client1.cpp:124: parse error before `}
' token

Esecuzione terminata