场景:
1.编译器没有显式的指定。
2.需要根据32,64做不同的处理.
方法1:
#include "stdio.h"
int main(int argc,char * argv[])
{
void* number = 0;
printf("%d\n",sizeof(&number));
}
输出8就是64位的,4就是32位的。根据逻辑地址判断。
方法2:
可以用file命令判断(如果安装了msys的话,linux下应该自带)
file msys-expat-1.dll
msys-expat-1.dll: PE executable for MS Windows (DLL) (console) Intel 80386 32-bi
t
方法3:
If you have a hex editor program, just open your file with it and shortly af