radstudio logo

C / C++ DLL compiling ilink32 error Unresolved external

If your building a C / C++ DLL and your getting ILINK32 Error: Unresolved external its a simple solution to get things working. The types of errors you will see are as follows :-

Show Plain Text
[ilink32 Error] Error: Unresolved external '__fastcall System::Internal::Strhlpr::UnicodeFree(System::UnicodeString&)' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\RAD STUDIO\12.0\LIB\WIN32\RELEASE\VCLE.LIB|ustring

[ilink32 Error] Error: Unresolved external '__fastcall System::Syncobjs::TCriticalSection::~TCriticalSection()' referenced from C:\SRC\C.XE\EDS\ENVIEW\RELEASE_BUILD\DLLMAIN.OBJ

[ilink32 Error] Error: Unresolved external '__fastcall System::TObject::~TObject()' referenced from C:\SRC\C.XE\EDS\ENVIEW\RELEASE_BUILD\DLLMAIN.OBJ

[ilink32 Error] Error: Unresolved external '__fastcall System::Inifiles::TIniFile::~TIniFile()' referenced from C:\SRC\C.XE\EDS\ENVIEW\RELEASE_BUILD\DLLMAIN.OBJ

The solution is simply to select Project->Options and go to Packages->Runtime Packages and set "Link with runtime packages" to false.

Filed under: Embarcadero  Tags: C, Cpp, Xe5, Rad Studio

0 Responses to “C / C++ DLL compiling ilink32 error Unresolved external ”

Sorry, comments have been closed for this post.