参照下面这篇**做的
http://blog.sina.com.cn/s/blog_4e3c6b480102zjsq.html
编译通过了,链接的时候报下面的错误。
我查了目标文件的符号,是这个符号lua_pushstring。
报错的是这个符号_imp__lua_pushstring
这2种符号是不一样的吗?
前面的是dll的符号表,后面的是给exe用的符号表吗?
lfs.o:lfs.c:(.text+0x6e): undefined reference to `_imp__lua_pushstring'
lfs.o:lfs.c:(.text+0xc7): undefined reference to `_imp__lua_pushstring'
lfs.o:lfs.c:(.text+0xdc): undefined reference to `_imp__lua_pushstring'
lfs.o:lfs.c:(.text+0xf6): undefined reference to `_imp__lua_pushstring'
lfs.o:lfs.c:(.text+0x26e): undefined reference to `_imp__lua_pushinteger'
lfs.o:lfs.c:(.text+0x29e): undefined reference to `_imp__lua_pushinteger'
lfs.o:lfs.c:(.text+0x2ce): undefined reference to `_imp__lua_pushinteger'
lfs.o:lfs.c:(.text+0x2fe): undefined reference to `_imp__lua_pushinteger'
lfs.o:lfs.c:(.text+0x32f): undefined reference to `_imp__lua_pushinteger' |