1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
make
g++ -Wall -Wextra -pedantic -I/usr/local/lang/nettle-3.0/include -c client.cpp -o client.o -lnettle -L/usr/local/lang/nettle-3.0/lib64 -Wl,-rpath,/usr/local/lang/nettle-3.0/lib64
g++ -Wall -Wextra -pedantic -I/usr/local/lang/nettle-3.0/include -c Distrib2015ClientSession.cpp -o Distrib2015ClientSession.o -lnettle -L/usr/local/lang/nettle-3.0/lib64 -Wl,-rpath,/usr/local/lang/nettle-3.0/lib64
Distrib2015ClientSession.cpp: In member function char* Distrib2015ClientSession::constructUdpQuery(uint32_t, char):
Distrib2015ClientSession.cpp:38:30: attention : grand entier implicitement tronqué pour un type non signé [-Woverflow]
query->TID = htons ( 234567 );
^
Distrib2015ClientSession.cpp: In member function void Distrib2015ClientSession::start():
Distrib2015ClientSession.cpp:178:9: attention : unused variable frameTosend [-Wunused-variable]
char* frameTosend = protocol ->constructFrame( commandA2, 66, mode );
^
g++ -Wall -Wextra -pedantic -I/usr/local/lang/nettle-3.0/include -c Distrib2015Client.cpp -o Distrib2015Client.o -lnettle -L/usr/local/lang/nettle-3.0/lib64 -Wl,-rpath,/usr/local/lang/nettle-3.0/lib64
Distrib2015Client.cpp: In member function int std::Distrib2015Client::conn(std::string, int):
Distrib2015Client.cpp:34:36: attention : comparaison entre des expressions entières signée et non signée [-Wsign-compare]
if(inet_addr(address.c_str()) == -1)
^
g++ -Wall -Wextra -pedantic -I/usr/local/lang/nettle-3.0/include -c CommandParser.cpp -o CommandParser.o -lnettle -L/usr/local/lang/nettle-3.0/lib64 -Wl,-rpath,/usr/local/lang/nettle-3.0/lib64
g++ -Wall -Wextra -pedantic -I/usr/local/lang/nettle-3.0/include client.o Distrib2015ClientSession.o Distrib2015Client.o CommandParser.o -o client -lnettle -L/usr/local/lang/nettle-3.0/lib64 -Wl,-rpath,/usr/local/lang/nettle-3.0/lib64
Distrib2015ClientSession.o: In function `Distrib2015ClientSession::constructUdpQuery(unsigned int, char)':
Distrib2015ClientSession.cpp:(.text+0x3f1): undefined reference to `Distrib2015Protocol::HMACSHA256(unsigned char const*, unsigned int, char const*)'
Distrib2015ClientSession.o: In function `Distrib2015ClientSession::start()':
Distrib2015ClientSession.cpp:(.text+0x5e4): undefined reference to `TcpSocket::TcpSocket(int)'
Distrib2015ClientSession.cpp:(.text+0x604): undefined reference to `Distrib2015Protocol::Distrib2015Protocol()'
Distrib2015ClientSession.cpp:(.text+0x693): undefined reference to `Distrib2015Protocol::constructCommand(int, char, std::string, unsigned int, std::string)'
Distrib2015ClientSession.cpp:(.text+0x703): undefined reference to `Distrib2015Protocol::constructFrame(char const*, int, char)'
Distrib2015ClientSession.cpp:(.text+0x739): undefined reference to `TcpSocket::sentData(char*, int)'
Distrib2015ClientSession.cpp:(.text+0x76d): undefined reference to `TcpSocket::receiveData(int)'
Distrib2015ClientSession.cpp:(.text+0x866): undefined reference to `Distrib2015Protocol::constructCommand(int, char, std::string, unsigned int, std::string)'
Distrib2015ClientSession.cpp:(.text+0x8c3): undefined reference to `Distrib2015Protocol::constructFrame(char const*, int, char)'
Distrib2015ClientSession.cpp:(.text+0x8e6): undefined reference to `TcpSocket::sentData(char*, int)'
Distrib2015ClientSession.cpp:(.text+0x91a): undefined reference to `TcpSocket::receiveData(int)'
Distrib2015ClientSession.cpp:(.text+0xac5): undefined reference to `UdpSocketClient::UdpSocketClient(int, std::string)'
Distrib2015ClientSession.cpp:(.text+0xba2): undefined reference to `UdpSocketClient::sentData(char const*, int)'
Distrib2015ClientSession.cpp:(.text+0xbe5): undefined reference to `UdpSocketClient::receivedData(int)'
Distrib2015ClientSession.cpp:(.text+0xd94): undefined reference to `Distrib2015Protocol::constructCommand(int, char, std::string, unsigned int, std::string)'
Distrib2015ClientSession.cpp:(.text+0xe00): undefined reference to `Distrib2015Protocol::constructFrame(char const*, int, char)'
Distrib2015ClientSession.cpp:(.text+0xe23): undefined reference to `TcpSocket::sentData(char*, int)'
Distrib2015ClientSession.cpp:(.text+0xe57): undefined reference to `TcpSocket::receiveData(int)'
Distrib2015ClientSession.cpp:(.text+0x1005): undefined reference to `UdpSocketClient::UdpSocketClient(int, std::string)'
Distrib2015ClientSession.cpp:(.text+0x10e2): undefined reference to `UdpSocketClient::sentData(char const*, int)'
Distrib2015ClientSession.cpp:(.text+0x1125): undefined reference to `UdpSocketClient::receivedData(int)'
Distrib2015ClientSession.cpp:(.text+0x127c): undefined reference to `typeinfo for ProtocolException'
Distrib2015ClientSession.o: In function `ProtocolException::ProtocolException(std::string)':
Distrib2015ClientSession.cpp:(.text._ZN17ProtocolExceptionC2ESs[_ZN17ProtocolExceptionC5ESs]+0x33): undefined reference to `Exception::Exception(std::string)'
Distrib2015ClientSession.cpp:(.text._ZN17ProtocolExceptionC2ESs[_ZN17ProtocolExceptionC5ESs]+0x4a): undefined reference to `vtable for ProtocolException'
Distrib2015ClientSession.o: In function `ProtocolException::~ProtocolException()':
Distrib2015ClientSession.cpp:(.text._ZN17ProtocolExceptionD2Ev[_ZN17ProtocolExceptionD5Ev]+0x13): undefined reference to `vtable for ProtocolException'
Distrib2015ClientSession.cpp:(.text._ZN17ProtocolExceptionD2Ev[_ZN17ProtocolExceptionD5Ev]+0x1f): undefined reference to `Exception::~Exception()'
CommandParser.o: In function `CommandParser::commandLineParsingServer(int, char**)':
CommandParser.cpp:(.text+0x8d): undefined reference to `typeinfo for ParsingException'
CommandParser.cpp:(.text+0x1c8): undefined reference to `typeinfo for ParsingException'
CommandParser.o: In function `CommandParser::commandLineParsingClient(int, char**)':
CommandParser.cpp:(.text+0x361): undefined reference to `typeinfo for ParsingException'
CommandParser.cpp:(.text+0x522): undefined reference to `typeinfo for ParsingException'
CommandParser.o: In function `ParsingException::ParsingException(std::string)':
CommandParser.cpp:(.text._ZN16ParsingExceptionC2ESs[_ZN16ParsingExceptionC5ESs]+0x33): undefined reference to `Exception::Exception(std::string)'
CommandParser.cpp:(.text._ZN16ParsingExceptionC2ESs[_ZN16ParsingExceptionC5ESs]+0x4a): undefined reference to `vtable for ParsingException'
CommandParser.o: In function `ParsingException::~ParsingException()':
CommandParser.cpp:(.text._ZN16ParsingExceptionD2Ev[_ZN16ParsingExceptionD5Ev]+0x13): undefined reference to `vtable for ParsingException'
CommandParser.cpp:(.text._ZN16ParsingExceptionD2Ev[_ZN16ParsingExceptionD5Ev]+0x1f): undefined reference to `Exception::~Exception()'
collect2: erreur: ld a retourné 1 code d'état d'exécution
make: *** [client] Erreur 1
[derrouic@pikkukorppi ~/Desktop/Socket_programming]$ |
Partager