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
|
g++ -pthread -lrt -g -static -W -Wall -ansi -pedantic -c -o cmd.o cmd.cpp
In file included from cmd.h:25,
from cmd.cpp:13:
enum.h:131: warning: malformed `#pragma pack'
enum.h:131: warning: ignoring pragma:
enum.h:152: warning: malformed `#pragma pack'
enum.h:152: warning: ignoring pragma:
enum.h:170: warning: malformed `#pragma pack'
enum.h:170: warning: ignoring pragma:
enum.h:186: warning: malformed `#pragma pack'
enum.h:186: warning: ignoring pragma:
cmd.cpp:20: `PTHREAD_MUTEX_INITIALIZER' was not declared
in this scope
cmd.cpp: In function `int Cmd::send
(Infos *, Message *, const sockaddr_in *)':
cmd.cpp:46: aggregate `timespec ts' has incomplete type
and cannot be initialized
cmd.cpp:54: `CLOCK_THREAD_CPUTIME_ID' undeclared (first
use this function)
cmd.cpp:54: (Each undeclared identifier is reported only
once for each function it appears in.)
cmd.cpp:54: `clock_gettime' undeclared (first use this
function)
cmd.cpp:59: aggregate `timespec time1' has incomplete type
and cannot be initialized
cmd.cpp:59: aggregate `timespec time2' has incomplete type
and cannot be initialized
cmd.cpp:87: `pthread_self' undeclared (first use this
function)
cmd.cpp:89: `pthread_mutex_lock' undeclared (first use
this function)
cmd.cpp:104: `pthread_cond_timedwait' undeclared (first
use this function)
cmd.cpp:122: no matching function for call to
`Cmd::diff ({typeprefixerror} &, {typeprefixerror} &)'
cmd.h:48: candidates are: static timespec
Cmd::diff (timespec, timespec)
cmd.cpp:135: `pthread_mutex_unlock' undeclared (first use
this function)
cmd.cpp: In function `timespec Cmd::diff
(timespec, timespec)':
cmd.cpp:239: parameter `start' has incomplete type
cmd.cpp:239: parameter `end' has incomplete type
cmd.cpp:239: return type `struct timespec' is incomplete
cmd.cpp:240: aggregate `timespec temp' has incomplete type
and cannot be initialized
cmd.cpp:239: return type `struct timespec' is incomplete
make: *** [cmd.o] Erreur 1 |
Partager