|
vc에서는 잘 돌아 가는대 빌더에서는 왜이러는지 잘이해가 되지 않습니다.ㅠ
에러는 E2034 Cannot convert 'void*' to 'short |*' 이며
구문은
context.memory = malloc(NUM_PROFILES * profileSizeBytes);
여기서 에러가 납니다. context 선언은
typedef struct
{
short int* memory;
unsigned int profileWidth;
double xResolution;
double zResolution;
double xOffset;
double zOffset;
}DataContext;
DataContext context;
이며 프로파일사이즈 선언은
unsigned int profileSizeBytes = profilePointCount * sizeof(short int);
입니다. 아, NUM_PROFILES 는
#define NUM_PROFILES 100 입니다.
무엇 때문에 convert가 않되는 걸까요 ㅠ
|