Unresolved external symbol boost::throw_exception

Support for running, installing or compiling OpenMW

Before you submit a bug report for the first time, please read: Bug reporting guidelines
Post Reply
DrWhoCares
Posts: 3
Joined: 18 Oct 2023, 07:19

Unresolved external symbol boost::throw_exception

Post by DrWhoCares »

Went through the instructions to start looking at contributing, tried to build the solution, only errors are unresolved external symbols for boost::throw_exception. Did I miss a step related to boost, or otherwise have some sorta thing I should handle to fix this? All I did was run the bash script and such. CMake, VS2022.

Code: Select all

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK2001	unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)	openmw-essimporter	C:\OpenMW-dev\openmw\MSVC2022_64\apps\essimporter\main.obj	1	
Error	LNK2001	unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)	openmw-iniimporter	C:\OpenMW-dev\openmw\MSVC2022_64\apps\mwiniimporter\main.obj	1	
Error	LNK1120	1 unresolved externals	openmw-iniimporter	C:\OpenMW-dev\openmw\MSVC2022_64\Release\openmw-iniimporter.exe	1	
Error	LNK1120	1 unresolved externals	openmw-essimporter	C:\OpenMW-dev\openmw\MSVC2022_64\Release\openmw-essimporter.exe	1	
Error	LNK2001	unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)	openmw-wizard	C:\OpenMW-dev\openmw\MSVC2022_64\apps\wizard\components.lib(configurationmanager.obj)	1	
Error	LNK1120	1 unresolved externals	openmw-wizard	C:\OpenMW-dev\openmw\MSVC2022_64\Release\openmw-wizard.exe	1	
Error	LNK2001	unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)	openmw-launcher	C:\OpenMW-dev\openmw\MSVC2022_64\apps\launcher\components.lib(configurationmanager.obj)	1	
Error	LNK1120	1 unresolved externals	openmw-launcher	C:\OpenMW-dev\openmw\MSVC2022_64\Release\openmw-launcher.exe	1	
Error	LNK2001	unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)	openmw-bulletobjecttool	C:\OpenMW-dev\openmw\MSVC2022_64\apps\bulletobjecttool\main.obj	1	
Error	LNK2001	unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)	esmtool	C:\OpenMW-dev\openmw\MSVC2022_64\apps\esmtool\esmtool.obj	1	
Error	LNK2001	unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)	openmw-navmeshtool	C:\OpenMW-dev\openmw\MSVC2022_64\apps\navmeshtool\worldspacedata.obj	1	
Error	LNK1120	1 unresolved externals	openmw-navmeshtool	C:\OpenMW-dev\openmw\MSVC2022_64\Release\openmw-navmeshtool.exe	1	
Error	LNK1120	1 unresolved externals	openmw-bulletobjecttool	C:\OpenMW-dev\openmw\MSVC2022_64\Release\openmw-bulletobjecttool.exe	1	
Error	LNK1120	1 unresolved externals	esmtool	C:\OpenMW-dev\openmw\MSVC2022_64\Release\esmtool.exe	1	
Error	LNK2001	unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)	bsatool	C:\OpenMW-dev\openmw\MSVC2022_64\apps\bsatool\bsatool.obj	1	
Error	LNK1120	1 unresolved externals	bsatool	C:\OpenMW-dev\openmw\MSVC2022_64\Release\bsatool.exe	1	
Error	LNK2001	unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)	niftest	C:\OpenMW-dev\openmw\MSVC2022_64\apps\niftest\niftest.obj	1	
Error	LNK1120	1 unresolved externals	niftest	C:\OpenMW-dev\openmw\MSVC2022_64\Release\niftest.exe	1	
Error	LNK2001	unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)	openmw	C:\OpenMW-dev\openmw\MSVC2022_64\apps\openmw\main.obj	1	
Error	LNK1120	1 unresolved externals	openmw	C:\OpenMW-dev\openmw\MSVC2022_64\Release\openmw.exe	1	
Error	LNK2001	unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)	openmw-cs	C:\OpenMW-dev\openmw\MSVC2022_64\apps\opencs\openmw-cs.lib(editor.obj)	1	
Error	LNK1120	1 unresolved externals	openmw-cs	C:\OpenMW-dev\openmw\MSVC2022_64\Release\openmw-cs.exe	1	
User avatar
AnyOldName3
Posts: 2678
Joined: 26 Nov 2015, 03:25

Re: Unresolved external symbol boost::throw_exception

Post by AnyOldName3 »

That's definitely not supposed to happen if you just run the Bash script and then build through VS, and isn't normal. Can you please upload your CMakeCache.txt from the MSVC2022_64 directory?
DrWhoCares
Posts: 3
Joined: 18 Oct 2023, 07:19

Re: Unresolved external symbol boost::throw_exception

Post by DrWhoCares »

I took a look and it looks like my boost folder is missing all of the source files. It only has built files. Not sure if you're just using dll version of boost or not though.

Also here's the Output tab instead of the error tab.

Code: Select all

Build started...
1>------ Build started: Project: ZERO_CHECK, Configuration: RelWithDebInfo x64 ------
1>Checking File Globs
2>------ Build started: Project: openmw-navmeshtool, Configuration: RelWithDebInfo x64 ------
3>------ Build started: Project: openmw-iniimporter, Configuration: RelWithDebInfo x64 ------
4>------ Build started: Project: openmw-essimporter, Configuration: RelWithDebInfo x64 ------
5>------ Build started: Project: openmw-bulletobjecttool, Configuration: RelWithDebInfo x64 ------
6>------ Build started: Project: openmw, Configuration: RelWithDebInfo x64 ------
7>------ Build started: Project: niftest, Configuration: RelWithDebInfo x64 ------
8>------ Build started: Project: esmtool, Configuration: RelWithDebInfo x64 ------
9>------ Build started: Project: bsatool, Configuration: RelWithDebInfo x64 ------
10>------ Build started: Project: openmw-wizard, Configuration: RelWithDebInfo x64 ------
11>------ Build started: Project: openmw-launcher, Configuration: RelWithDebInfo x64 ------
12>------ Build started: Project: openmw-cs, Configuration: RelWithDebInfo x64 ------
7>components.lib(compressedbsafile.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
7>components.lib(configfileparser.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
7>niftest.obj : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
7>components.lib(configurationmanager.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
7>components.lib(ba2dx10file.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
7>components.lib(ba2gnrlfile.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
7>C:\OpenMW-dev\openmw\MSVC2022_64\RelWithDebInfo\niftest.exe : fatal error LNK1120: 1 unresolved externals
7>Done building project "niftest.vcxproj" -- FAILED.
4>main.obj : error LNK2019: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __cdecl boost::any_cast<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &>(class boost::any &)" (??$any_cast@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@boost@@YAAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAVany@0@@Z)
4>components.lib(configurationmanager.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
4>components.lib(configfileparser.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
4>C:\OpenMW-dev\openmw\MSVC2022_64\RelWithDebInfo\openmw-essimporter.exe : fatal error LNK1120: 1 unresolved externals
4>Done building project "openmw-essimporter.vcxproj" -- FAILED.
2>components.lib(compressedbsafile.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
2>components.lib(configurationmanager.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
2>components.lib(configfileparser.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
2>components.lib(ba2dx10file.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
2>components.lib(ba2gnrlfile.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
2>worldspacedata.obj : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
2>main.obj : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
2>components.lib(tilecachedrecastmeshmanager.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
2>components.lib(debugging.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
2>C:\OpenMW-dev\openmw\MSVC2022_64\RelWithDebInfo\openmw-navmeshtool.exe : fatal error LNK1120: 1 unresolved externals
2>Done building project "openmw-navmeshtool.vcxproj" -- FAILED.
9>components.lib(configurationmanager.obj) : error LNK2019: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z) referenced in function "public: virtual __cdecl std::basic_filebuf<char,struct std::char_traits<char> >::~basic_filebuf<char,struct std::char_traits<char> >(void)" (??1?$basic_filebuf@DU?$char_traits@D@std@@@std@@UEAA@XZ)
9>components.lib(configfileparser.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
9>bsatool.obj : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
9>components.lib(ba2dx10file.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
9>components.lib(ba2gnrlfile.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
9>components.lib(compressedbsafile.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
9>C:\OpenMW-dev\openmw\MSVC2022_64\RelWithDebInfo\bsatool.exe : fatal error LNK1120: 1 unresolved externals
9>Done building project "bsatool.vcxproj" -- FAILED.
5>components.lib(ba2dx10file.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
5>components.lib(ba2gnrlfile.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
5>components.lib(compressedbsafile.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
5>main.obj : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
5>components.lib(debugging.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
5>components.lib(configurationmanager.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
5>components.lib(configfileparser.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
5>C:\OpenMW-dev\openmw\MSVC2022_64\RelWithDebInfo\openmw-bulletobjecttool.exe : fatal error LNK1120: 1 unresolved externals
5>Done building project "openmw-bulletobjecttool.vcxproj" -- FAILED.
8>esmtool.obj : error LNK2019: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > & __cdecl boost::any_cast<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &>(class boost::any &)" (??$any_cast@AEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@boost@@YAAEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAVany@0@@Z)
8>components.lib(configurationmanager.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
8>components.lib(configfileparser.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
8>C:\OpenMW-dev\openmw\MSVC2022_64\RelWithDebInfo\esmtool.exe : fatal error LNK1120: 1 unresolved externals
8>Done building project "esmtool.vcxproj" -- FAILED.
3>main.obj : error LNK2019: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z) referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const & __cdecl boost::any_cast<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &>(class boost::any &)" (??$any_cast@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@boost@@YAAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAVany@0@@Z)
3>components.lib(configurationmanager.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
3>components.lib(configfileparser.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
3>C:\OpenMW-dev\openmw\MSVC2022_64\RelWithDebInfo\openmw-iniimporter.exe : fatal error LNK1120: 1 unresolved externals
3>Done building project "openmw-iniimporter.vcxproj" -- FAILED.
10>Automatic MOC for target openmw-wizard
10>mocs_compilation_RelWithDebInfo.cpp
11>Automatic MOC for target openmw-launcher
11>mocs_compilation_RelWithDebInfo.cpp
12>components.lib(ba2dx10file.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
12>components.lib(ba2gnrlfile.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
12>components.lib(compressedbsafile.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
12>openmw-cs.lib(editor.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
12>components.lib(debugging.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
12>components.lib(configurationmanager.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
12>components.lib(configfileparser.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
12>C:\OpenMW-dev\openmw\MSVC2022_64\RelWithDebInfo\openmw-cs.exe : fatal error LNK1120: 1 unresolved externals
12>Done building project "openmw-cs.vcxproj" -- FAILED.
6>   Creating library C:/OpenMW-dev/openmw/MSVC2022_64/apps/openmw/RelWithDebInfo/openmw.lib and object C:/OpenMW-dev/openmw/MSVC2022_64/apps/openmw/RelWithDebInfo/openmw.exp
6>components.lib(ba2gnrlfile.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
6>components.lib(compressedbsafile.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
6>components.lib(tilecachedrecastmeshmanager.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
6>components.lib(navmeshmanager.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
6>components.lib(navigator.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
6>components.lib(configfileparser.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
6>components.lib(navigatorimpl.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
6>components.lib(ba2dx10file.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
6>main.obj : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
6>options.obj : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
6>components.lib(configurationmanager.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
6>components.lib(debugging.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
6>C:\OpenMW-dev\openmw\MSVC2022_64\RelWithDebInfo\openmw.exe : fatal error LNK1120: 1 unresolved externals
6>Done building project "openmw.vcxproj" -- FAILED.
10>components.lib(configurationmanager.obj) : error LNK2019: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z) referenced in function "struct Fallback::FallbackMap & __cdecl boost::any_cast<struct Fallback::FallbackMap &>(class boost::any &)" (??$any_cast@AEAUFallbackMap@Fallback@@@boost@@YAAEAUFallbackMap@Fallback@@AEAVany@0@@Z)
10>components.lib(configfileparser.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
10>C:\OpenMW-dev\openmw\MSVC2022_64\RelWithDebInfo\openmw-wizard.exe : fatal error LNK1120: 1 unresolved externals
10>Done building project "openmw-wizard.vcxproj" -- FAILED.
11>components.lib(debugging.obj) : error LNK2019: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z) referenced in function "protected: virtual int __cdecl boost::iostreams::detail::indirect_streambuf<class Debug::Tee,struct std::char_traits<char>,class std::allocator<char>,struct boost::iostreams::output>::pbackfail(int)" (?pbackfail@?$indirect_streambuf@VTee@Debug@@U?$char_traits@D@std@@V?$allocator@D@4@Uoutput@iostreams@boost@@@detail@iostreams@boost@@MEAAHH@Z)
11>components.lib(configurationmanager.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
11>components.lib(configfileparser.obj) : error LNK2001: unresolved external symbol "void __cdecl boost::throw_exception(class std::exception const &)" (?throw_exception@boost@@YAXAEBVexception@std@@@Z)
11>C:\OpenMW-dev\openmw\MSVC2022_64\RelWithDebInfo\openmw-launcher.exe : fatal error LNK1120: 1 unresolved externals
11>Done building project "openmw-launcher.vcxproj" -- FAILED.
========== Build: 1 succeeded, 11 failed, 15 up-to-date, 0 skipped ==========
========== Build started at 6:12 PM and took 10.565 seconds ==========
Attachments
CMakeCache.txt
(60.43 KiB) Downloaded 69 times
Last edited by DrWhoCares on 19 Oct 2023, 02:14, edited 1 time in total.
User avatar
AnyOldName3
Posts: 2678
Joined: 26 Nov 2015, 03:25

Re: Unresolved external symbol boost::throw_exception

Post by AnyOldName3 »

We use precompiled Boost, and your CMakeCache.txt appears to reference the correct paths that our script spits out Boost to. The main weird thing I found is that you've got no compiler or linker flags (the variables that are supposed to hold them are blank) and a couple of tools like your linker are being listed with obviously wrong paths.

I'd give deleting your CMakeCache.txt and re-running CI/before_script.msvc.sh again a try.
DrWhoCares
Posts: 3
Joined: 18 Oct 2023, 07:19

Re: Unresolved external symbol boost::throw_exception

Post by DrWhoCares »

That fixed it, thanks.
Post Reply