在visual studio工程设置中增加宏定义的方法

1. 应用:dll生成工程中导出头文件中有如下定义:

#ifdef VIDEO_QUALITY_DIAGNOSIS_EXPORTING

#define VQD_INTERFACE _declspec(dllexport)

#else

#define VQD_INTERFACE _declspec(dllimport)

#endif


2.方法:在Solution Explorer中鼠标右键点击其project之后,

Configuration(Release)
->Configuration Propertity
  ->C++
    ->Preprocessor
      ->Preprocessor Definitions
在此处增加你想要的宏。


转载文章《在visual studio工程设置中增加宏定义的方法》

http://blog.sina.com.cn/s/blog_78fd98af01014iwq.html

猜你喜欢

转载自blog.csdn.net/gongzixiaobai8842/article/details/78223317