Menu

#235 Error while linking

open
nobody
5
2009-05-23
2009-05-18
No

Compilation errors out while linking:

g++ -o gledge32 -Wl,--warn-common main.o -Lsrc -Lddf -Ltimidity -Lepi -Lglbsp -Ldeh_edge -Llinux_lib/lua-5.1.2/src -Llinux_lib/zlib-1.2.3 -Llinux_lib/libpng-1.2.12 -Llinux_lib/jpeg-6b -Llinux_lib/fltk-1.1.9/lib -L/usr/lib -Llinux_lib/glew-1.4/lib -Llinux_lib/libogg-1.1.3 -Llinux_lib/libvorbis-1.1.2 -ledge1 -lddf -ltimidity -lepi -lglbsp -ldehedge -llua -lpng -ljpeg -lz -lfltk -lfltk_images -lSDL -lpthread -lGLEW -lGL -lvorbisfile -lvorbis -logg
src/libedge1.a(l_lua.o): In function `PL_main_ammo(lua_State*)':
l_lua.cc:(.text+0x8d): undefined reference to `lua_pushinteger(lua_State*, long)'
--> [ and much more "undefined references" to lua stuff ]

---

Submitted by rabyte_at_moonblade.dot.org

Discussion

  • Andrew Apted

    Andrew Apted - 2009-05-19

    Lua must be compiled with a C++ compiler, like it says in the INSTALL document.

    Download Lua 5.1.2 source, put it in linux_lib directory (i.e. you have linux_lib/lua-5.1.2)
    then edit its Makefiles to compile with g++ and then compile it.

     
  • Christoph Zeiler

    Duh, yeah that did the trick. Remember reading it in the readme ages ago, but forgot about it :-/
    My apologies.

     
  • Christoph Zeiler

    • status: open --> open-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB