You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am a beginner in programming and want to use Microsoft Visual Studio Community 2019 for Windows systems to build codelldb based on the BUILDING.md documentation. However, I encountered an *error LNK2019: unresolved external symbol "public: __ cdecl lldb:: SBCommandInterpreter:: SBCommandInterpreter (class lldb_private:: CommandInterpreter )" and tried some methods but did not resolve it.
A bit of guidance would be greatly appreciated.
source code versoin: codelldb v1.10.0
OS: Windows 10
Microsoft Visual Studio: 2019
node: v20.11.1
npm : 10.2.4
Python 3.12.1
Here's what I did:
1 Get the lldb zip compressed file from the “C:\Users\Windows.vscode\extensions\vadimcn.vscode-lldb-1.10.0\lldb” path,and put the lldb.zip file into the “E:\xingqiaoaipu_projects\codelldb\codelldb\LLDB_ZIP\lldb.zip” path
2 Place the codelldb-1.10.0 source code in the "E:\xingqiaoaipu_projects\codelldb" path
3 In the x64 Native Tools Command Prompt for VS 2019 command window, navigate to the "E:\xingqiaoaipu_projects\codelldb\codelldb-1.10.0" path
mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-x86_64-windows-msvc.cmake -DLLDB_PACKAGE="E:\\xingqiaoaipu_projects\\codelldb\\codelldb\\LLDB_ZIP\\lldb.zip"
4 open Solution "CodeLLDB" in Microsoft Visual Studio Community 2019, then Building "ALL_BUILD" VC++ Project
This is failing to building project "codelldb_dylib.vcxproj":
E:\xingqiaoaipu_projects\codelldb\codelldb-1.10.0\build>cmake .. -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-x86_64-windows-msvc.cmake -DLLDB_PACKAGE="E:\\xingqiaoaipu_projects\\codelldb\\codelldb\\LLDB_ZIP\\lldb.zip"
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.29.30147.0
-- The CXX compiler identification is MSVC 19.29.30147.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Version 1.9.2-dev.2402280701
Using LLDB_PACKAGE=E:/xingqiaoaipu_projects/codelldb/codelldb/LLDB_ZIP/lldb.zip
Found MSDIA at C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/DIA SDK/bin/amd64/msdia140.dll
npm WARN deprecated vsce@2.15.0: vsce has been renamed to @vscode/vsce. Install using @vscode/vsce instead.
added 321 packages, and audited 322 packages in 18s
59 packages are looking for funding
run `npm fund` for details
6 vulnerabilities (4 moderate, 2 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
Configuring debuggee-gnu
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.29.30147.0
-- The CXX compiler identification is MSVC 19.29.30147.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: E:/xingqiaoaipu_projects/codelldb/codelldb-1.10.0/build/debuggee-gnu
Configuring debuggee-msvc
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.29.30147.0
-- The CXX compiler identification is MSVC 19.29.30147.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: E:/xingqiaoaipu_projects/codelldb/codelldb-1.10.0/build/debuggee-msvc
-- Configuring done
-- Generating done
-- Build files have been written to: E:/xingqiaoaipu_projects/codelldb/codelldb-1.10.0/build
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am a beginner in programming and want to use Microsoft Visual Studio Community 2019 for Windows systems to build codelldb based on the BUILDING.md documentation. However, I encountered an *error LNK2019: unresolved external symbol "public: __ cdecl lldb:: SBCommandInterpreter:: SBCommandInterpreter (class lldb_private:: CommandInterpreter )" and tried some methods but did not resolve it.
A bit of guidance would be greatly appreciated.
source code versoin: codelldb v1.10.0
OS: Windows 10
Microsoft Visual Studio: 2019
node: v20.11.1
npm : 10.2.4
Python 3.12.1
Here's what I did:
1 Get the lldb zip compressed file from the “C:\Users\Windows.vscode\extensions\vadimcn.vscode-lldb-1.10.0\lldb” path,and put the lldb.zip file into the “E:\xingqiaoaipu_projects\codelldb\codelldb\LLDB_ZIP\lldb.zip” path
2 Place the codelldb-1.10.0 source code in the "E:\xingqiaoaipu_projects\codelldb" path
3 In the x64 Native Tools Command Prompt for VS 2019 command window, navigate to the "E:\xingqiaoaipu_projects\codelldb\codelldb-1.10.0" path
4 open Solution "CodeLLDB" in Microsoft Visual Studio Community 2019, then Building "ALL_BUILD" VC++ Project
This is failing to building project "codelldb_dylib.vcxproj":
Full output of cmake:
Output of building:
Beta Was this translation helpful? Give feedback.
All reactions