Hi guys,
I was wondering if someone could help me out. I’m trying to get a program running with CUDA, and I’ve written a load of code and am running through the errors that are being given out by g++ and nvcc at compilation, but ran into one I can’t figure out from nvcc. It’s telling me that an identifier (in title) isn’t defined, yet from what I can see it is?
The code I have is :
#include "cuColutils.cuh"
#include "cuColour.cuh"
#include "cuPovray.cuh"
namespace pov {
extern cuOpts *cuopts;
__device__ void cuClipColorAA(COLOUR color) {
if (cuopts->AntialiasClipped)
cuClip_Colour(Color, Color);
}
}
Judging by the error, it is the “cuopts” that is supposedly undefined, however it is being defined as extern right above it?
Does anyone have any ideas??
Thanks