Skip to content

Checkout does not build revision 96 #2

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. cd src; make
2.
3.

What is the expected output? What do you see instead?
Expect it to compile. Fails with following error:
g++ `pkg-config --cflags opencv` -I../include -I. -o cvhaartraining.o -c 
cvhaartraining.cpp
cvhaartraining.cpp: In function ‘int 
icvGetHaarTrainingDataFromVec(CvHaarTrainingData*, int, int, 
CvIntHaarClassifier*, const char*, int*)’:
cvhaartraining.cpp:1818:50: error: ‘int 
icvGetHaarTrainingDataFromVec(CvHaarTrainingData*, int, int, 
CvIntHaarClassifier*, const char*, int*)’ was declared ‘extern’ and later 
‘static’ [-fpermissive]
In file included from cvhaartraining.cpp:49:0:
./_cvhaartraining.h:354:5: error: previous declaration of ‘int 
icvGetHaarTrainingDataFromVec(CvHaarTrainingData*, int, int, 
CvIntHaarClassifier*, const char*, int*)’ [-fpermissive]
make: *** [cvhaartraining.o] Error 1


What version of the product are you using? On what operating system?
Built against OpenCV 2.4.2, Ubuntu 13.04, Kernel 3.8.0-27-generic

Please provide any additional information below.
FIX: Remove line 1814 from cvhaartraining.cpp

Original issue reported on code.google.com by [email protected] on 23 Aug 2013 at 8:44

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions