Open
Description
Error:
[237/238] C:\WINDOWS\system32\cmd.exe /C "cd . && E:\vcpkg_cache\downloads\tools\cmake-3.30.1-windows\cmake-3.30.1-windows-i386\bin\cmake.exe -E vs_link_dll --intdir=src\vsg\CMakeFiles\vsg.dir --rc=rc.exe --mt="D:\vcpkg_folders\no_msvc\installed\x64-windows-static\compiler\msvc\WinSDK\Windows Kits\10\bin\10.0.26100.0\x64\mt.exe" --manifests -- D:\vcpkg_folders\no_msvc\installed\x64-windows-static\compiler\llvm\bin\lld-link.exe @CMakeFiles\vsg.rsp /out:lib\vsg-14.dll /implib:lib\vsg.lib /pdb:lib\vsg-14.pdb /dll /version:1.1 /machine:x64 /nologo /DEBUG /INCREMENTAL:NO /OPT:REF /OPT:ICF && cd ."
FAILED: lib/vsg-14.dll lib/vsg.lib
C:\WINDOWS\system32\cmd.exe /C "cd . && E:\vcpkg_cache\downloads\tools\cmake-3.30.1-windows\cmake-3.30.1-windows-i386\bin\cmake.exe -E vs_link_dll --intdir=src\vsg\CMakeFiles\vsg.dir --rc=rc.exe --mt="D:\vcpkg_folders\no_msvc\installed\x64-windows-static\compiler\msvc\WinSDK\Windows Kits\10\bin\10.0.26100.0\x64\mt.exe" --manifests -- D:\vcpkg_folders\no_msvc\installed\x64-windows-static\compiler\llvm\bin\lld-link.exe @CMakeFiles\vsg.rsp /out:lib\vsg-14.dll /implib:lib\vsg.lib /pdb:lib\vsg-14.pdb /dll /version:1.1 /machine:x64 /nologo /DEBUG /INCREMENTAL:NO /OPT:REF /OPT:ICF && cd ."
LINK: command "D:\vcpkg_folders\no_msvc\installed\x64-windows-static\compiler\llvm\bin\lld-link.exe @CMakeFiles\vsg.rsp /out:lib\vsg-14.dll /implib:lib\vsg.lib /pdb:lib\vsg-14.pdb /dll /version:1.1 /machine:x64 /nologo /DEBUG /INCREMENTAL:NO /OPT:REF /OPT:ICF /MANIFEST:EMBED,ID=2" failed (exit code 1) with the following output:
lld-link: error: undefined symbol: public: void __cdecl vsg::Object::setValue<class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>>>(class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>> const &, class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>> const &)
>>> referenced by src\vsg\CMakeFiles\vsg.dir\core\Data.cpp.obj
>>> referenced by src\vsg\CMakeFiles\vsg.dir\io\Path.cpp.obj
ninja: build stopped: subcommand failed.
Probably a include is missing since the definition of the functions is in Value.h
and not Object.h
. I fixed it by explicitly instantiating the function in Object.cpp
(and including Value.h
of course)
Metadata
Metadata
Assignees
Labels
No labels