不说出一个type_in做假货
Does not name a type_in make prossess
我一直在尝试在窗口中编译一些代码,但我收到此错误:"flann_index_t"没有命名类型"此错误从何而来?任何人都可以帮助我解决这个问题吗?
g++ -I. -Iflann/src/cpp -c -o src/main.o src/main.cpp
In file included from ./boost/asio/async_result.hpp:18,
from ./boost/asio.hpp:20,
from src/common.hpp:30,
from src/main.cpp:9:
./boost/asio/detail/config.hpp:367:5: warning: #warning Please define _WIN32_WIN
NT or _WIN32_WINDOWS appropriately.
./boost/asio/detail/config.hpp:368:5: warning: #warning For example, add -D_WIN3
2_WINNT=0x0501 to the compiler command line.
./boost/asio/detail/config.hpp:369:5: warning: #warning Assuming _WIN32_WINNT=0x
0501 (i.e. Windows XP target).
In file included from src/common.hpp:50,
from src/main.cpp:9:
src/CBIR.hpp:32: error: 'flann_index_t' does not name a type
./flann/util/matrix.h: In function 'int cbir::main(int, char**)':
./flann/util/matrix.h:75: error: 'flann::uchar* flann::Matrix_::data' is protected
src/main.cpp:39: error: within this context Makefile:43: recipe for target `src/main.o' failed
make: *** [src/main.o] Error 1
假设你正在使用 flann,那么你需要:
#include <flann.h>
在CBIR.hpp
.
相关文章:
- 如何解决"'mutex' in namespace 'std' does not name a type"?
- 警告的原因是什么:"when type is in parentheses, array cannot have dynamic size"?
- Boost.Spirit X3 解析器"no type named type in(...)"
- 修复第三方代码:"error: ‘enable_if’ in namespace ‘std’ does not name a template type"
- 什么原因导致我的"‘FatalError’ in namespace ‘Foam’ does not name a type"错误?
- vtkTypeTraits.h 错误:"Type long is not 4 or 8 bytes in size."
- 如何修复张量流中的"Non-OK-status: Not found: Op type not registered 'NoOp' in binary running"
- 如何修复空虚拟方法的"warning: no return statement in function returning non-void [-Wreturn-type]"
- 模板尾部结构抬高"incomplete type in nested name specifier"
- 犰狳/ Xcode:无处"functions that differ only in their return type cannot be overloaded"错误
- "expected unqualified-id before 'void'" & "string in class does not name a type" 错误
- 编译错误 C++ "was not declared in this scope" "expected type specifier"等
- "enumeral and non-enumeral type in conditional expression"背后的推理
- 头文件类成员函数声明错误:"incomplete type name in nested name specifier"
- 提升精神语法错误 - "no type named ‘size’ in ‘struct boost::spirit::unused_type’"
- OpenCV 错误:断言失败 (src1.size == dst.size && dst.type() == CV_8U) in cvInRangeS
- 派生类'no type named my_data in <base class>'中的错误
- 'using type' in C++会导致多个错误
- 将""Treat wchar_t as built-in type""设置为"否"是否会影响 C# 互操作?
- 开发中的过剩C++错误"redeclaration of C++ built-in type `short'"