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.

用Grace配置的程序,如何设置全局变量的问题



在InterruptVectors_init.c文件里,有一段话 /* User defined includes, defines, global variables and functions */ ,然后我就在这行定义了全局变量num,可是在main()函数里调用num的话,会提示num没有定义。我想请教一下究竟在哪里定义全局变量?