Advertisement
Guest User

Untitled

a guest
Sep 8th, 2017
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. opencv-1.1.0$ make
  2. make  all-recursive
  3. make[1]: Entering directory `/home/mercutio22/My-programs/opencv-1.1.0'
  4. Making all in cxcore
  5. make[2]: Entering directory `/home/mercutio22/My-programs/opencv-1.1.0/cxcore'
  6. Making all in src
  7. make[3]: Entering directory `/home/mercutio22/My-programs/opencv-1.1.0/cxcore/src'
  8. /bin/bash ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I../../cxcore/include -I../..  -DNDEBUG  -Wall -fno-rtti -pipe -O3 -g  -msse2  -fno-strict-aliasing -MT cxalloc.lo -MD -MP -MF .deps/cxalloc.Tpo -c -o cxalloc.lo cxalloc.cpp
  9.  g++ -DHAVE_CONFIG_H -I. -I../.. -I. -I../../cxcore/include -I../.. -DNDEBUG -Wall -fno-rtti -pipe -O3 -g -msse2 -fno-strict-aliasing -MT cxalloc.lo -MD -MP -MF .deps/cxalloc.Tpo -c cxalloc.cpp  -fPIC -DPIC -o .libs/cxalloc.o
  10. In file included from _cxcore.h:60,
  11.                  from cxalloc.cpp:42:
  12. ../../cxcore/include/cxmisc.h:133:6: error: #elif with no expression
  13. make[3]: *** [cxalloc.lo] Error 1
  14. make[3]: Leaving directory `/home/mercutio22/My-programs/opencv-1.1.0/cxcore/src'
  15. make[2]: *** [all-recursive] Error 1
  16. make[2]: Leaving directory `/home/mercutio22/My-programs/opencv-1.1.0/cxcore'
  17. make[1]: *** [all-recursive] Error 1
  18. make[1]: Leaving directory `/home/mercutio22/My-programs/opencv-1.1.0'
  19. make: *** [all] Error 2
  20. mercutio22@debian:~/My-programs/opencv-1.1.0$
  21.  
  22.  
  23.  
  24.  
  25. GCC 4.4 will introduce better checks in the preprocessor.  The problem
  26. is pretty obvious: you're using a #elif without any condition when
  27. you really want a #else.
  28.  
  29. You can reproduce this problem with gcc-snapshot from unstable.
  30.  
  31.  
  32.  
  33. correct:
  34.  
  35.  
  36. remove: --- cxcore/include/cxmisc.h~    2008-11-07 15:12:58.000000000 +0000
  37. add :   +++ cxcore/include/cxmisc.h 2008-11-07 15:13:03.000000000 +0000
  38.  @@ -130,7 +130,7 @@
  39.             #include <alloca.h>
  40.          #elif defined HAVE_ALLOCA
  41.            #include <stdlib.h>
  42. remove:      -#elif
  43. add:         +#else
  44.                #error
  45.              #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement