Hi I am working with my thesis project which is porting the scripting language Lua to a FRDM-KL25Z platform. I downloaded the SDK from the official web which is MDK Version 5 - Legacy Support, since I am using a Version 4 project which is exported from mbed online project. I am able to debug and blinking the led. So I started to put the related .c and .h files which I want to use from the Lua src files. When I first put the lua.h and set the path in the options, there is an error says"error in include chain (luaconf.h) : invalid token at start of a preprocessor expression", but it does include this luaconf.h in the lua.h. So is there anyone who has any idea to fix the problem?
Hi,Christopher
The problem has been fixed. Cause Lua is written in C, but the mbed project is c++. So it needs c++ and c mixing code
// This is C++ code
extern "C" {
// Get declaration for f(int i, char c, float x)
#include "my-C-code.h"
}
Thanks anyway dude xD