1. Post #1
    mcd1992's Avatar
    March 2008
    260 Posts
    Hello,

    Im not sure if this would go under the Lua sections or the C++ section but anyway I am trying to compile this module.
    http://www.facepunch.com/showthread.php?t=770585
    But I keep running into compiler problems

    Code:
    1>------ Build started: Project: beeptest, Configuration: Debug Win32 ------
    1>Compiling...
    1>cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
    1>beep.cpp
    1>C:\GMSDK\public\mathlib/vector.h(2150) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
    1>C:\GMSDK\public\mathlib/vector.h(2189) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
    1>C:\GMSDK\public\mathlib/mathlib.h(811) : warning C4561: '__fastcall' incompatible with the '/clr' option: converting to '__stdcall'
    1>c:\gmsdk\public\mathlib\vector2d.h(226) : warning C4793: 'Vector2D::Vector2D' : function compiled as native :
    1> Inline native assembly not supported in managed code
    1>c:\gmsdk\public\mathlib\vector2d.h(209) : warning C4793: 'Vector2D::Vector2D' : function compiled as native :
    1> Inline native assembly not supported in managed code
    1>Linking...
    1>   Creating library Debug\beeptest.lib and object Debug\beeptest.exp
    1>beep.obj : warning LNK4248: unresolved typeref token (01000017) for 'lua_State'; image may not run
    1>LINK : error LNK2001: unresolved external symbol _main
    1>beep.obj : error LNK2019: unresolved external symbol __ExitOnFatalAssert referenced in function "public: __thiscall Vector2D::Vector2D(class Vector2D const &)" (??0Vector2D@@QAE@ABV0@@Z)
    1>beep.obj : error LNK2019: unresolved external symbol _DoNewAssertDialog referenced in function "public: __thiscall Vector2D::Vector2D(class Vector2D const &)" (??0Vector2D@@QAE@ABV0@@Z)
    1>beep.obj : error LNK2019: unresolved external symbol _ShouldUseNewAssertDialog referenced in function "public: __thiscall Vector2D::Vector2D(class Vector2D const &)" (??0Vector2D@@QAE@ABV0@@Z)
    1>beep.obj : error LNK2019: unresolved external symbol __SpewMessage referenced in function "public: __thiscall Vector2D::Vector2D(class Vector2D const &)" (??0Vector2D@@QAE@ABV0@@Z)
    1>beep.obj : error LNK2019: unresolved external symbol __SpewInfo referenced in function "public: __thiscall Vector2D::Vector2D(class Vector2D const &)" (??0Vector2D@@QAE@ABV0@@Z)
    1>Debug\beeptest.dll : fatal error LNK1120: 6 unresolved externals
    1>Build log was saved at "file://c:\Users\Aaron\Desktop\gmoduletest\beeptest\Debug\BuildLog.htm"
    1>beeptest - 7 error(s), 7 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    I have followed the setup on the wiki and have all the headers setup ect. ect. but no matter what i keep getting "unresolved externals" any help?

  2. Post #2
    milkyway's Avatar
    May 2009
    264 Posts
    Dont use compilers, because they use a .lua language that differs from using text documents. :\

  3. Post #3
    ahref's Avatar
    July 2008
    191 Posts
    what you are making no senser milkyway.

    I would say you should post this into the C section