Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Build fails with clang-cl due to undefined symbols #575

@emmenlau

Description

@emmenlau

I've built glog 0.4.0 often with cmake on various platforms successfully. We just recently switched to clang-cl on MSVC and now the build fails for the first time, with several errors about undefined symbols such as:

LINK Pass 1: command "C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\Llvm\x64\bin\lld-link.exe CMakeFiles\demangle_unittest.dir\src\demangle_unittest.cc.obj /out:demangle_unittest.exe /implib:demangle_unittest.lib /pdb:demangle_unittest.pdb /version:0.0 /machine:x64 /MACHINE:X64 /DEBUG /debug /INCREMENTAL /subsystem:console glogd.lib dbghelp.lib C:\data\stable-artifacts-MSVC-Haswell-7-x64-cl19.27.29111_clang10.0.0\Debug\lib\gflags_debug.lib shlwapi.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\demangle_unittest.dir/intermediate.manifest CMakeFiles\demangle_unittest.dir/manifest.res" failed (exit code 1) with the following output:
 lld-link: error: undefined symbol: bool __cdecl google::Demangle(char const *, char *, int)

Does that mean anything to anyone?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions