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.

如何生成lib文件可以 实现头文件中宏定义值改变,lib中相应的值也更改

在新建工程的时候,不要选择生成.out, 选择生成.lib后改变宏定义值,lib中值无法改变

  • 在新建工程的时候,生成.lib后改变宏定义值,lib中值无法改变。原因是这种方式,是将编译后的Obj文件打包,obj在预编译过程中已经将宏定义的值替换,因此外部宏定义改变,lib内的值不会改变。而TMS320F2803x的高精度PWM库函数可以做到,请问是怎么做到的??