Im using net-beans 7.2 if i run helloworld.cpp its showing error that cannot find include file (IDE cannot able to recognize any .h files ). i installed gcc, im useing Fedora 16, im trying to use CUDA plugin.
#include <cuda_runtime.h>
#include <cutil.h>
# include <iostream.h>
int main(int argc, char **argv)
{
prithf("Hii");
return 0;
}
Hope someone help me.
In C++, you usually dont use the .h extension for header files. For C++ header files, directly use the filename which in this case would be
Using iostream.h is deprecated.
Also write
preferably after decalring all header files to import all symbols in the standard namespace into your code. That way, you wont have to write std:: everytime you want to use one. If you’re not getting what im talking about, please refer this link – http://www.cplusplus.com/doc/tutorial/namespaces/. Understanding this is important.
For your usual C header files, usually you have to prefix a ‘c’ before the filename and remove the .h extension. For example,
becomes