Hi all
I’m trying to compile a cuda program with ROOT class included using nvcc, What would be the best way to do it. I tried to provide the path using “-I$ROOTSYS/include” option but can not make it. For example, to compile the following simple code:
#include <iostream>
#include "TNtuple.h"
int main()
{
std::cout<<"Hello"<<std::endl;
}
Hi,
The compilation flags generated by root-config --cflags are for the compiler used to build ROOT; they are not suited to be passed to some “random other compiler”
So please check the output of root-config --cflags and adjust it to whatever is applicable for nvcc.