12:19:45 \ Incremental Build of configuration Default for project Utils **
mingw32-make -j all
[ 6%] Built target TinyXml
[ 53%] Built target yaml-cpp
[ 94%] Built target RhobanUtils
[ 96%] [ 98%] [100%] Building CXX object CMakeFiles/TestSockets.dir/test-sockets.cpp.obj
Building CXX object CMakeFiles/TestTimedThread.dir/test-timed-thread.cpp.obj
Building CXX object CMakeFiles/TestLogging.dir/test-logging.cpp.obj
C:\Users\Hugo\Documents\Utils\test\test-logging.cpp:18:54: erreur: macro « LOG_CPP » requiert 4 arguments, mais seulement 3 ont été passés
C:\Users\Hugo\Documents\Utils\test\test-logging.cpp: In function 'int main()':
C:\Users\Hugo\Documents\Utils\test\test-logging.cpp:17:5: erreur: ISO C++ interdit la comparaison entre un pointeur et un entier [-fpermissive]
C:\Users\Hugo\Documents\Utils\test\test-logging.cpp:17:5: erreur: invalid conversion from 'int' to 'const char' [-fpermissive]
c:\mingw\bin../lib/gcc/mingw32/4.6.1/../../../../include/stdio.h:294:37: erreur: initializing argument 1 of 'int printf(const char, ...)' [-fpermissive]
C:\Users\Hugo\Documents\Utils\test\test-logging.cpp:18:5: erreur: 'LOG_CPP' was not declared in this scope
mingw32-make[2]: * [CMakeFiles/TestLogging.dir/test-logging.cpp.obj] Error 1
mingw32-make[1]: * [CMakeFiles/TestLogging.dir/all] Error 2
mingw32-make[1]: * Waiting for unfinished jobs....
In file included from C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:19:0:
C:/Users/Hugo/Documents/Utils/test/../sockets/TCPServer.h: In member function 'virtual void Rhoban::TCPServer::run(int, int)':
C:/Users/Hugo/Documents/Utils/test/../sockets/TCPServer.h:70:28: erreur: 'SIGPIPE' was not declared in this scope
C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp: In member function 'virtual void EchoClient::loop()':
C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:39:13: erreur: ISO C++ interdit la comparaison entre un pointeur et un entier [-fpermissive]
C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:39:13: erreur: too few arguments to function 'int printf(const char, ...)'
c:\mingw\bin../lib/gcc/mingw32/4.6.1/../../../../include/stdio.h:294:37: note: declared here
C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp: In function 'void run_server(void)':
C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:53:9: erreur: ISO C++ interdit la comparaison entre un pointeur et un entier [-fpermissive]
C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp: In member function 'void TestSockets::testClientServer()':
C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:67:13: erreur: ISO C++ interdit la comparaison entre un pointeur et un entier [-fpermissive]
C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:67:13: erreur: too few arguments to function 'int printf(const char, ...)'
c:\mingw\bin../lib/gcc/mingw32/4.6.1/../../../../include/stdio.h:294:37: note: declared here
C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:69:20: erreur: 'sleep' was not declared in this scope
C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:71:13: erreur: ISO C++ interdit la comparaison entre un pointeur et un entier [-fpermissive]
C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:71:13: erreur: too few arguments to function 'int printf(const char, ...)'
c:\mingw\bin../lib/gcc/mingw32/4.6.1/../../../../include/stdio.h:294:37: note: declared here
C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:76:13: erreur: ISO C++ interdit la comparaison entre un pointeur et un entier [-fpermissive]
C:\Users\Hugo\Documents\Utils\test\test-timed-thread.cpp: In function 'int main(int, char)':
C:\Users\Hugo\Documents\Utils\test\test-timed-thread.cpp:34:28: erreur: no matching function for call to 'MyThread::init(double, bool)'
C:\Users\Hugo\Documents\Utils\test\test-timed-thread.cpp:34:28: note: candidate is:
C:/Users/Hugo/Documents/Utils/test/../threading/TimedThread.h:49:14: note: void TimedThread::init(double)
C:/Users/Hugo/Documents/Utils/test/../threading/TimedThread.h:49:14: note: candidate expects 1 argument, 2 provided
C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:76:13: erreur: too few arguments to function 'int printf(const char, ...)'
c:\mingw\bin../lib/gcc/mingw32/4.6.1/../../../../include/stdio.h:294:37: note: declared here
mingw32-make[2]: * [CMakeFiles/TestTimedThread.dir/test-timed-thread.cpp.obj] Error 1
C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:79:13: erreur: ISO C++ interdit la comparaison entre un pointeur et un entier [-fpermissive]
C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:79:13: erreur: too few arguments to function 'int printf(const char, ...)'
c:\mingw\bin../lib/gcc/mingw32/4.6.1/../../../../include/stdio.h:294:37: note: declared here
C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:85:13: erreur: ISO C++ interdit la comparaison entre un pointeur et un entier [-fpermissive]
mingw32-make[1]: * [CMakeFiles/TestTimedThread.dir/all] Error 2
C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:85:13: erreur: too few arguments to function 'int printf(const char, ...)'
c:\mingw\bin../lib/gcc/mingw32/4.6.1/../../../../include/stdio.h:294:37: note: declared here
C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp: In function 'int main()':
C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:101:9: erreur: ISO C++ interdit la comparaison entre un pointeur et un entier [-fpermissive]
mingw32-make[2]: * [CMakeFiles/TestSockets.dir/test-sockets.cpp.obj] Error 1
mingw32-make[1]: * [CMakeFiles/TestSockets.dir/all] Error 2
mingw32-make: * [all] Error 2
12:19:46 Build Finished (took 1s.571ms)
1 participant
Numero7 commented 5 minutes ago
Il y a un souci avec LOG_CPP
Pour les sockets, l'ancienne version de Server était compatible toutes plateformes, on peut récupérer le code
12:19:45 \ Incremental Build of configuration Default for project Utils ** mingw32-make -j all [ 6%] Built target TinyXml [ 53%] Built target yaml-cpp [ 94%] Built target RhobanUtils [ 96%] [ 98%] [100%] Building CXX object CMakeFiles/TestSockets.dir/test-sockets.cpp.obj Building CXX object CMakeFiles/TestTimedThread.dir/test-timed-thread.cpp.obj Building CXX object CMakeFiles/TestLogging.dir/test-logging.cpp.obj C:\Users\Hugo\Documents\Utils\test\test-logging.cpp:18:54: erreur: macro « LOG_CPP » requiert 4 arguments, mais seulement 3 ont été passés C:\Users\Hugo\Documents\Utils\test\test-logging.cpp: In function 'int main()': C:\Users\Hugo\Documents\Utils\test\test-logging.cpp:17:5: erreur: ISO C++ interdit la comparaison entre un pointeur et un entier [-fpermissive] C:\Users\Hugo\Documents\Utils\test\test-logging.cpp:17:5: erreur: invalid conversion from 'int' to 'const char' [-fpermissive] c:\mingw\bin../lib/gcc/mingw32/4.6.1/../../../../include/stdio.h:294:37: erreur: initializing argument 1 of 'int printf(const char, ...)' [-fpermissive] C:\Users\Hugo\Documents\Utils\test\test-logging.cpp:18:5: erreur: 'LOG_CPP' was not declared in this scope mingw32-make[2]: * [CMakeFiles/TestLogging.dir/test-logging.cpp.obj] Error 1 mingw32-make[1]: * [CMakeFiles/TestLogging.dir/all] Error 2 mingw32-make[1]: * Waiting for unfinished jobs.... In file included from C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:19:0: C:/Users/Hugo/Documents/Utils/test/../sockets/TCPServer.h: In member function 'virtual void Rhoban::TCPServer::run(int, int)': C:/Users/Hugo/Documents/Utils/test/../sockets/TCPServer.h:70:28: erreur: 'SIGPIPE' was not declared in this scope C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp: In member function 'virtual void EchoClient::loop()': C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:39:13: erreur: ISO C++ interdit la comparaison entre un pointeur et un entier [-fpermissive] C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:39:13: erreur: too few arguments to function 'int printf(const char, ...)' c:\mingw\bin../lib/gcc/mingw32/4.6.1/../../../../include/stdio.h:294:37: note: declared here C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp: In function 'void run_server(void)': C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:53:9: erreur: ISO C++ interdit la comparaison entre un pointeur et un entier [-fpermissive] C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp: In member function 'void TestSockets::testClientServer()': C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:67:13: erreur: ISO C++ interdit la comparaison entre un pointeur et un entier [-fpermissive] C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:67:13: erreur: too few arguments to function 'int printf(const char, ...)' c:\mingw\bin../lib/gcc/mingw32/4.6.1/../../../../include/stdio.h:294:37: note: declared here C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:69:20: erreur: 'sleep' was not declared in this scope C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:71:13: erreur: ISO C++ interdit la comparaison entre un pointeur et un entier [-fpermissive] C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:71:13: erreur: too few arguments to function 'int printf(const char, ...)' c:\mingw\bin../lib/gcc/mingw32/4.6.1/../../../../include/stdio.h:294:37: note: declared here C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:76:13: erreur: ISO C++ interdit la comparaison entre un pointeur et un entier [-fpermissive] C:\Users\Hugo\Documents\Utils\test\test-timed-thread.cpp: In function 'int main(int, char)': C:\Users\Hugo\Documents\Utils\test\test-timed-thread.cpp:34:28: erreur: no matching function for call to 'MyThread::init(double, bool)' C:\Users\Hugo\Documents\Utils\test\test-timed-thread.cpp:34:28: note: candidate is: C:/Users/Hugo/Documents/Utils/test/../threading/TimedThread.h:49:14: note: void TimedThread::init(double) C:/Users/Hugo/Documents/Utils/test/../threading/TimedThread.h:49:14: note: candidate expects 1 argument, 2 provided C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:76:13: erreur: too few arguments to function 'int printf(const char, ...)' c:\mingw\bin../lib/gcc/mingw32/4.6.1/../../../../include/stdio.h:294:37: note: declared here mingw32-make[2]: * [CMakeFiles/TestTimedThread.dir/test-timed-thread.cpp.obj] Error 1 C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:79:13: erreur: ISO C++ interdit la comparaison entre un pointeur et un entier [-fpermissive] C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:79:13: erreur: too few arguments to function 'int printf(const char, ...)' c:\mingw\bin../lib/gcc/mingw32/4.6.1/../../../../include/stdio.h:294:37: note: declared here C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:85:13: erreur: ISO C++ interdit la comparaison entre un pointeur et un entier [-fpermissive] mingw32-make[1]: * [CMakeFiles/TestTimedThread.dir/all] Error 2 C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:85:13: erreur: too few arguments to function 'int printf(const char, ...)' c:\mingw\bin../lib/gcc/mingw32/4.6.1/../../../../include/stdio.h:294:37: note: declared here C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp: In function 'int main()': C:\Users\Hugo\Documents\Utils\test\test-sockets.cpp:101:9: erreur: ISO C++ interdit la comparaison entre un pointeur et un entier [-fpermissive] mingw32-make[2]: * [CMakeFiles/TestSockets.dir/test-sockets.cpp.obj] Error 1 mingw32-make[1]: * [CMakeFiles/TestSockets.dir/all] Error 2 mingw32-make: * [all] Error 2
12:19:46 Build Finished (took 1s.571ms)
1 participant Numero7 commented 5 minutes ago
Il y a un souci avec LOG_CPP Pour les sockets, l'ancienne version de Server était compatible toutes plateformes, on peut récupérer le code