[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: compiling lua with dev-cpp (gcc 3.2)
- From: "Milo Spirig" <toytoy@...>
- Date: Thu, 8 May 2003 19:03:56 +0200
Hi
Im trying to compile LUA 5.0 as a static library with dev-cpp (gcc 3.2)
under Windows. I added all the files from the src und src/lib directory to
the project und compiled it. Then I linked this library to my test project
und compiled again, but now I'm getting a linker error for all the lua calls
like:
[Linker error] undefined reference to `lua_open'
../src/ai_lua.o(.text$get_registry__Q37luabind6detail14class_registryP9lua_S
tate+0x25):ai_lua.cpp: undefined reference to `lua_gettable'
../src/ai_lua.o(.text$stage1__Q37luabind6detail12create_classP9lua_State+0x1
0):ai_lua.cpp: undefined reference to `lua_gettop'
../src/ai_lua.o(.text$is_class_object__Q27luabind6detailP9lua_Statei+0x7e):a
i_lua.cpp: undefined reference to `lua_settop'
...
(and I'm sure I linked the library correctly)
Can anybody help me?
thanks
Milo