Lua 5.3 undefined references

前端 未结 2 1805
不思量自难忘°
不思量自难忘° 2021-01-13 13:08

I am trying to learn how to embed lua in a C program, but I am not great at reading technical documents, and I haven\'t found any current tutorials. This is my program:

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-13 13:55

    In c++ you should include lua.hpp not lua.h. lua.h does not define the extern "C" block to stop the name mangling of the c++ compiler.

提交回复
热议问题