compiler error "vector does not name a type" in gpu.hpp (Bug #4473)


Added by Tom Krause over 9 years ago. Updated over 9 years ago.


Status:Cancelled Start date:2015-07-08
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:gpu (cuda)
Target version:-
Affected version:branch 'master' (3.0-dev) Operating System:Linux
Difficulty:Easy HW Platform:x64
Pull request:

Description

when including the gpu.hpp in my project i get about 10 compiler errors like the following one

/usr/local/include/opencv2/gpu/gpu.hpp:432: error: 'vector' does not name a type
CV_EXPORTS void merge(const vector<GpuMat>& src, GpuMat& dst, Stream& stream = Stream::Null());

i have checkes this, the include of <vector> is there, but the "using namespace cv;" is missing


History

Updated by Alexander Alekhin over 9 years ago

Please check samples here, they should work: https://github.com/Itseez/opencv/tree/2.4/samples/gpu
Looks like there are some assumptions for this header (something like "#include <vector>" / "#include <iostream>" / "using namespace std"), that is missed in your code.

  • Priority changed from Blocker to Normal
  • Category set to gpu (cuda)

Updated by Tom Krause over 9 years ago

currently i cant reproduce this. Maybe i had an old OpenCV 2.4 header. In 3.0 the gpu.h doesnt semms to exist....where have the gpu stuff moved?

Updated by Alexander Alekhin over 9 years ago

In 3.0 "gpu" module was replaced by "cuda*" modules.
Samples are here: https://github.com/Itseez/opencv/tree/master/samples/gpu

Updated by Tom Krause over 9 years ago

Thanks for your help. It seems that everything works now...i think the error occoured beacause there are remains of an older version of OpenCV...so i will cancel this bug for now.

  • Status changed from New to Cancelled

Also available in: Atom PDF