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.
(default) 5 queries took 2 ms
NrQueryErrorAffectedNum. rowsTook (ms)
1SELECT `Post`.`id`, `Post`.`url`, `Post`.`title`, `Post`.`icon`, `Post`.`metadesc`, `Post`.`metakeys`, `Post`.`categories`, `Post`.`tease`, `Post`.`body`, `Post`.`private_body`, `Post`.`created`, `Post`.`modified`, `Post`.`status`, `Post`.`allow_comments`, `Post`.`tags`, `Post`.`hitcount`, `Post`.`hitcount_rss` FROM `posts` AS `Post` WHERE `Post`.`url` = 'c-c-dll-compiling-ilink32-error-unresolved-external' LIMIT 1111
2SELECT `Comment`.`id`, `Comment`.`post_id`, `Comment`.`body`, `Comment`.`author`, `Comment`.`url`, `Comment`.`email`, `Comment`.`ip`, `Comment`.`status`, `Comment`.`junk_score`, `Comment`.`created`, `Comment`.`modified` FROM `comments` AS `Comment` WHERE `Comment`.`status` = 2 AND `Comment`.`post_id` = (92) 000
3SELECT `Tag`.`id`, `Tag`.`tag`, `PostsTag`.`post_id`, `PostsTag`.`tag_id` FROM `tags` AS `Tag` JOIN `posts_tags` AS `PostsTag` ON (`PostsTag`.`post_id` = 92 AND `PostsTag`.`tag_id` = `Tag`.`id`) 440
4SELECT `Category`.`id`, `Category`.`category`, `CategoriesPost`.`post_id`, `CategoriesPost`.`category_id` FROM `categories` AS `Category` JOIN `categories_posts` AS `CategoriesPost` ON (`CategoriesPost`.`post_id` = 92 AND `CategoriesPost`.`category_id` = `Category`.`id`) 110
5UPDATE `posts` AS `Post` SET `Post`.`hitcount` = Post.hitcount + 1 WHERE `Post`.`id` = 9211