LuaFormatter icon indicating copy to clipboard operation
LuaFormatter copied to clipboard

Linking issues on Win10 and VS2019

Open samr opened this issue 4 years ago • 0 comments

I used the default steps laid out on the website to run cmake (version 3.22.0), which generated a solution file for Windows 10 and VS2019 (version 16.11.3) in my environment. I then built the solution and ran into many LNK2001 errors when trying to resolve the antlr dependencies when linking the lua-format target.

The solution I arrived at was to disable the IPO / LTO support in the CMakeLists.txt by commenting out set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE). I am not sure why that fixes the problem so I can't advise further, but thought it might be useful for others trying to compile for this environment.

samr avatar Jan 02 '22 18:01 samr