Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- opencv-1.1.0$ make
- make all-recursive
- make[1]: Entering directory `/home/mercutio22/My-programs/opencv-1.1.0'
- Making all in cxcore
- make[2]: Entering directory `/home/mercutio22/My-programs/opencv-1.1.0/cxcore'
- Making all in src
- make[3]: Entering directory `/home/mercutio22/My-programs/opencv-1.1.0/cxcore/src'
- /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
- 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
- In file included from _cxcore.h:60,
- from cxalloc.cpp:42:
- ../../cxcore/include/cxmisc.h:133:6: error: #elif with no expression
- make[3]: *** [cxalloc.lo] Error 1
- make[3]: Leaving directory `/home/mercutio22/My-programs/opencv-1.1.0/cxcore/src'
- make[2]: *** [all-recursive] Error 1
- make[2]: Leaving directory `/home/mercutio22/My-programs/opencv-1.1.0/cxcore'
- make[1]: *** [all-recursive] Error 1
- make[1]: Leaving directory `/home/mercutio22/My-programs/opencv-1.1.0'
- make: *** [all] Error 2
- mercutio22@debian:~/My-programs/opencv-1.1.0$
- GCC 4.4 will introduce better checks in the preprocessor. The problem
- is pretty obvious: you're using a #elif without any condition when
- you really want a #else.
- You can reproduce this problem with gcc-snapshot from unstable.
- correct:
- remove: --- cxcore/include/cxmisc.h~ 2008-11-07 15:12:58.000000000 +0000
- add : +++ cxcore/include/cxmisc.h 2008-11-07 15:13:03.000000000 +0000
- @@ -130,7 +130,7 @@
- #include <alloca.h>
- #elif defined HAVE_ALLOCA
- #include <stdlib.h>
- remove: -#elif
- add: +#else
- #error
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement