In Eclipse CDT I have a C++ method defined as:
CUfunction getKernel(CUmodule& module, const std::string& name);
it uses CUfunction
and CUmodule
that are defined in cuda.h
which is correctly imported.
However when Eclipse tries to compile this, I get an error on this method:
Invalid arguments '
Candidates are:
? getKernel(? &, const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &)
'
Does it mean that for some reason it cannot find CUfunction
and CUmodule
classes?
However in the same source file I use them without any complaint by Eclipse...
You get question marks if the indexer doesn't know your types.
You can search for unresolved include files with the menu option: Project -> C/C++ Index -> Search for Unresolved Includes. (Eclipse Luna)
Folders of files that show up in that search can be added in the project settings under: C/C++ General -> Preprocessor Include Paths, Entries tab, CDT User Setting Entries (may need to be enabled in the Providers tab). Note that there are separate settings for each programming language.