Anyone got Z+ to compile in VS2008?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • APWhite
    Adept
    • Jul 2007
    • 244

    Anyone got Z+ to compile in VS2008?

    I began to work on a solution of VS2008 and I can't seem to see how to include the lua files to compile correctly into the build. Has anyone tried using VS200 to compile Z+?

    I can get most of the stuff to compile without too much trouble, but I run into these linker errors at the end
    Code:
    Linking...
    script.obj : error LNK2019: unresolved external symbol _tolua_field_open referenced in function _script_init
    script.obj : error LNK2019: unresolved external symbol _tolua_spell_open referenced in function _script_init
    script.obj : error LNK2019: unresolved external symbol _tolua_misc_open referenced in function _script_init
    script.obj : error LNK2019: unresolved external symbol _tolua_ui_open referenced in function _script_init
    script.obj : error LNK2019: unresolved external symbol _tolua_random_open referenced in function _script_init
    script.obj : error LNK2019: unresolved external symbol _tolua_monst_open referenced in function _script_init
    script.obj : error LNK2019: unresolved external symbol _tolua_object_open referenced in function _script_init
    script.obj : error LNK2019: unresolved external symbol _tolua_player_open referenced in function _script_init
    Debug\ZPlusAngband.exe : fatal error LNK1120: 8 unresolved externals
    Build log was saved at "file://c:\Games\ZPlusAngband\Debug\BuildLog.htm"
    ZPlusAngband - 9 error(s), 588 warning(s)
    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
    St George Chiropractor
    Angband Borg Homepage
  • Blue Baron
    Adept
    • Apr 2011
    • 103

    #2
    I think you need to make the lua bindings. I think you need to run l-make in the src directory, then add the resulting files to your project. The files it makes are l-misc.c, l-field.c, l-monst.c, l-object.c, l-player.c, l-spell.c, l-ui.c and l-random.c.

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎