cuda 4.0 channel_descriptor.h

Hi, I tried to compile my old project in 4.0, but I get the message

c:\program files\nvidia gpu computing toolkit\cuda\v4.0\include\channel_descriptor.h(107) : error C2894: templates cannot be declared to have ‘C’ linkage
1>c:\program files\nvidia gpu computing toolkit\cuda\v4.0\include\channel_descriptor.h(110) : error C2733: second C linkage of overloaded function ‘cudaCreateChannelDesc’
also the same problem in cuda_runtime.h
What am I doing wrong?
grts,
Peter

problem resolved, took out part of code

extern “C” {

//#include “constants.h”

//#include <cublas.h>

//#include <stdlib.h>

//#include <stdio.h>

//#include <string.h>

//#include “hr_time.h”

//#include “cutil.h”

//#include “cutil_inline.h”

//#include “pmgdict.h”

};

don’t what it was in for, perfectly compiles without it