Hi, Fine it works. But can anyone tell me how to use lua in a C++ project. By the way their was the problem. I have used the gcc but named my file *.cpp, how stupid. > You need to add -lm to the compile (that's the math library)