Changing where MQX_template_list is located

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Changing where MQX_template_list is located

Jump to solution
477 Views
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 Kudos
1 Solution
305 Views
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.

View solution in original post

0 Kudos
1 Reply
306 Views
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 Kudos