1)经常我们在MFC中如我们定义类或者结构体时,就会出现如下错误:
E:/MusicRetrieval/FFT.CPP(3) : error C2146: syntax error : missing ';' before identifier 'W'
E:/MusicRetrieval/FFT.CPP(3) : error C2501: 'complex' : missing storage-class or type specifiers
E:/MusicRetrieval/FFT.CPP(3) : fatal error C1004: unexpected end of file found
解决办法:
将头文件加到“stdafx.h”;
2)出现如下错误时:
e:/musicretrieval/audiofeature.cpp(118) : fatal error C1010: unexpected end of file while looking for precompiled header directive
解决办法:
将“stdafx.h”加你cpp文件中