比如IMAGE_WIDTH这个会定位到s__vector.h的vector这个位置,但我实际是define在define.h里面的,这是什么原因呢?


This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
代码是自己写的,很简单,截取部分给您测试看一下
#include <vector>
void main(void){
m_pvCode = new std::vector< int >[IMAGE_WIDTH*IMAGE_WIDTH * 3 / 2];
disxCode = new std::vector< int >[IMAGE_WIDTH*IMAGE_HEIGHT];
}
在别的头文件定义的
#define IMAGE_WIDTH (1280)
#define IMAGE_HEIGHT (720)
相关的代码就是这些