Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Unresolved external link errors on C++ Builder Seattle using MSBuild


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Jun 22, 2017 7:29 AM Last Post By: Mary McCartney Threads: [ Previous | Next ]
Mary McCartney

Posts: 9
Registered: 7/7/10
Unresolved external link errors on C++ Builder Seattle using MSBuild  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 22, 2017 6:55 AM
I have a C++ VCL project that builds fine in the C++ Builder IDE. But, when I try to build it using MSBuild, I get all these linker errors that are related to the standard template library, exception handling, and RTTI. Are there some libraries I specifically need to add to my project to avoid these errors? Here's the output. Thanks!

"C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj" (build target) (1) ->
(_PerformBCCILink target) ->
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Error: Unresolved external '__InitExceptBlockLDTC' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\17.0\LIB\WIN32\DEBUG\VCLE.LIB|vclinit [C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj]
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Error: Unresolved external '_ThrowExceptionLDTC(void *, void *, void *, void *, unsigned int, unsigned int, unsigned int, unsigned char *, void *)' referenced from C:\WS\SEMAAN - ENGINEERING - 2011\BRANCHES\ENGINEERING - 2017-01-11 - US_POLESANDTOWERS_BRANCH\CODE\POLESPROJECTS\POLES\WIN32\DEBUG\SITERRAASSETWS.OBJ [C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj]
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Error: Unresolved external '__DynamicCast(void *, void *, void *, void *, int)' referenced from C:\WS\SEMAAN - ENGINEERING - 2011\BRANCHES\ENGINEERING - 2017-01-11 - US_POLESANDTOWERS_BRANCH\CODE\POLESPROJECTS\POLES\WIN32\DEBUG\MAIN.OBJ [C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj]
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Error: Unresolved external '_CatchCleanup()' referenced from C:\WS\SEMAAN - ENGINEERING - 2011\BRANCHES\ENGINEERING - 2017-01-11 - US_POLESANDTOWERS_BRANCH\CODE\POLESPROJECTS\POLES\WIN32\DEBUG\INTERPOLATE.OBJ [C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj]
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Error: Unresolved external '_vector_delete_ldtc_(void *, unsigned int, unsigned int, unsigned int, void *)' referenced from C:\WS\SEMAAN - ENGINEERING - 2011\BRANCHES\ENGINEERING - 2017-01-11 - US_POLESANDTOWERS_BRANCH\CODE\POLESPROJECTS\POLES\WIN32\DEBUG\LOADCASE.OBJ [C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj]
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Error: Unresolved external '__Return_unwind' referenced from C:\WS\SEMAAN - ENGINEERING - 2011\BRANCHES\ENGINEERING - 2017-01-11 - US_POLESANDTOWERS_BRANCH\CODE\POLESPROJECTS\POLES\WIN32\DEBUG\MAIN3.OBJ [C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj]
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Error: Unresolved external '__fastcall __DynamicCastVCLptr(void *, void *)' referenced from C:\WS\SEMAAN - ENGINEERING - 2011\BRANCHES\ENGINEERING - 2017-01-11 - US_POLESANDTOWERS_BRANCH\CODE\POLESPROJECTS\POLES\WIN32\DEBUG\MAIN.OBJ [C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj]
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Error: Unresolved external 'std::_String_base::_Xlen() const' referenced from C:\WS\SEMAAN - ENGINEERING - 2011\BRANCHES\ENGINEERING - 2017-01-11 - US_POLESANDTOWERS_BRANCH\CODE\POLESPROJECTS\POLES\WIN32\DEBUG\POLESAPS.OBJ [C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj]
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Error: Unresolved external '_ReThrowException(unsigned int, unsigned char *)' referenced from C:\WS\SEMAAN - ENGINEERING - 2011\BRANCHES\ENGINEERING - 2017-01-11 - US_POLESANDTOWERS_BRANCH\CODE\POLESPROJECTS\POLES\WIN32\DEBUG\NATFREQ.OBJ [C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj]
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Error: Unresolved external 'std::_String_base::_Xran() const' referenced from C:\WS\SEMAAN - ENGINEERING - 2011\BRANCHES\ENGINEERING - 2017-01-11 - US_POLESANDTOWERS_BRANCH\CODE\POLESPROJECTS\POLES\WIN32\DEBUG\NATFREQ.OBJ [C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj]
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Error: Unresolved external 'std::locale::_Getfacet(unsigned int) const' referenced from C:\WS\SEMAAN - ENGINEERING - 2011\BRANCHES\ENGINEERING - 2017-01-11 - US_POLESANDTOWERS_BRANCH\CODE\POLESPROJECTS\POLES\WIN32\DEBUG\POLESAPS.OBJ [C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj]
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Error: Unresolved external 'std::_Locinfo::~_Locinfo()' referenced from C:\WS\SEMAAN - ENGINEERING - 2011\BRANCHES\ENGINEERING - 2017-01-11 - US_POLESANDTOWERS_BRANCH\CODE\POLESPROJECTS\POLES\WIN32\DEBUG\POLESAPS.OBJ [C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj]
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Error: Unresolved external '__InterlockedIncrement' referenced from C:\WS\SEMAAN - ENGINEERING - 2011\BRANCHES\ENGINEERING - 2017-01-11 - US_POLESANDTOWERS_BRANCH\CODE\POLESPROJECTS\POLES\WIN32\DEBUG\POLESAPS.OBJ [C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj]
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Error: Unresolved external '__InterlockedDecrement' referenced from C:\WS\SEMAAN - ENGINEERING - 2011\BRANCHES\ENGINEERING - 2017-01-11 - US_POLESANDTOWERS_BRANCH\CODE\POLESPROJECTS\POLES\WIN32\DEBUG\POLESAPS.OBJ [C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj]
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Error: Unresolved external 'std::locale::locale()' referenced from C:\WS\SEMAAN - ENGINEERING - 2011\BRANCHES\ENGINEERING - 2017-01-11 - US_POLESANDTOWERS_BRANCH\CODE\POLESPROJECTS\POLES\WIN32\DEBUG\POLESAPS.OBJ [C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj]
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Error: Unresolved external 'std::ios_base::_Init()' referenced from C:\WS\SEMAAN - ENGINEERING - 2011\BRANCHES\ENGINEERING - 2017-01-11 - US_POLESANDTOWERS_BRANCH\CODE\POLESPROJECTS\POLES\WIN32\DEBUG\POLESAPS.OBJ [C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj]
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Error: Unresolved external 'std::ios_base::_Addstd()' referenced from C:\WS\SEMAAN - ENGINEERING - 2011\BRANCHES\ENGINEERING - 2017-01-11 - US_POLESANDTOWERS_BRANCH\CODE\POLESPROJECTS\POLES\WIN32\DEBUG\POLESAPS.OBJ [C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj]
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Error: Unresolved external '_vector_new_ldtc_(void *, unsigned int, unsigned int, unsigned int, void *, unsigned int, void *)' referenced from C:\WS\SEMAAN - ENGINEERING - 2011\BRANCHES\ENGINEERING - 2017-01-11 - US_POLESANDTOWERS_BRANCH\CODE\POLESPROJECTS\POLES\WIN32\DEBUG\LOADCASE.OBJ [C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj]
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Error: Unresolved external 'std::setprecision(int)' referenced from C:\WS\SEMAAN - ENGINEERING - 2011\BRANCHES\ENGINEERING - 2017-01-11 - US_POLESANDTOWERS_BRANCH\CODE\POLESPROJECTS\POLES\WIN32\DEBUG\POLESAPS.OBJ [C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj]
C:\Program Files (x86)\Embarcadero\Studio\17.0\Bin\CodeGear.Cpp.Targets(3313,5): error : Error: Unable to perform link [C:\WS\Semaan - Engineering - 2011\Branches\Engineering - 2017-01-11 - US_PolesAndTowers_Branch\Code\PolesProjects\Poles\Poles.cbproj]

0 Warning(s)
20 Error(s)

Edited by: Mary McCartney on Jun 22, 2017 9:55 AM

Mary McCartney

Posts: 9
Registered: 7/7/10
Re: Unresolved external link errors on C++ Builder Seattle using MSBuild  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 22, 2017 7:29 AM   in response to: Mary McCartney in response to: Mary McCartney
I found the source of the problem. I had some debug and release libraries in my lib path, and I was trying to do a debug build. I removed the release libraries, and it is working now.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02