Changing where MQX_template_list is located

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Changing where MQX_template_list is located

跳至解决方案
980 次查看
jesperevertsson
Contributor IV

Hi, I'm trying to create my first MQX project from scratch. I am using the IAR Embedded Workbench so I went ahead and copied an existing project to a new folder and renamed it. I chose the gpio example since my procjet will use gpio. I managed to compile and run the project from the new location so everything is fine so far. Then I wanted to move the MQX_template_list from gpio.c to my own file called main.cpp. However, now when I try to compile I get an error saying "

Error[Li005]: no definition for "MQX_template_list" [referenced from mqx_init.o(bsp.a)] ". I assume that somewhere it' specified that the MQX_template_list should be located in gpio.c so I need to change that. I just don't know where to find it.

0 项奖励
回复
1 解答
808 次查看
jesperevertsson
Contributor IV

Ok, I managed to get it to work. Since my code was in C++ I had to add extern "C" and now it works.

在原帖中查看解决方案

0 项奖励
回复
1 回复
809 次查看
jesperevertsson
Contributor IV

Ok, I managed to get it to work. Since my code was in C++ I had to add extern "C" and now it works.

0 项奖励
回复