LNK2001 for all destructors

LNK2001 for all destructors

icubicag的头像

After installing the compiler v11.0 my project doesn't link anymore.

For linking I use whole program optimization and after a very long linking time (the linker uses 16 GB RAM) there are lots of errors logged:

1>ipo_76046obj1.obj : error LNK2001: unresolved external symbol "public: virtual void * __cdecl CI3PricingServerApp::`vector deleting destructor'(unsigned int)" (??_ECI3PricingServerApp@@UEAAPEAXI@Z)
1>ipo_76046obj2.obj : error LNK2001: unresolved external symbol "public: virtual void * __cdecl CI3PricingServerApp::`vector deleting destructor'(unsigned int)" (??_ECI3PricingServerApp@@UEAAPEAXI@Z)
1>ipo_76046obj3.obj : error LNK2001: unresolved external symbol "public: virtual void * __cdecl CI3PricingServerApp::`vector deleting destructor'(unsigned int)" (??_ECI3PricingServerApp@@UEAAPEAXI@Z)
1>ipo_76046obj1.obj : error LNK2001: unresolved external symbol "public: virtual void * __cdecl CI3PricingServerApp::`scalar deleting destructor'(unsigned int)" (??_GCI3PricingServerApp@@UEAAPEAXI@Z)
1>ipo_76046obj2.obj : error LNK2001: unresolved external symbol "public: virtual void * __cdecl CI3PricingServerApp::`scalar deleting destructor'(unsigned int)" (??_GCI3PricingServerApp@@UEAAPEAXI@Z)
1>ipo_76046obj3.obj : error LNK2001: unresolved external symbol "public: virtual void * __cdecl CI3PricingServerApp::`scalar deleting destructor'(unsigned int)" (??_GCI3PricingServerApp@@UEAAPEAXI@Z)
1>x64\Output/i3PricingServer64.exe : fatal error LNK1120: 2828 unresolved externals

It looks like that all used destructors are not resolved by the linker. This happens for all virtual and non-virtual destructors.

Can you help me. please!

Regards,

Falko Lbner

2 帖子 / 0 new
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项
Igor Levicki的头像
Falco, Disabling inter-procedural optimizations (-Qip- or -Qipo- depending on which one you have enabled)should solve your problem. It seems that the inter-procedural optimization is broken in 11.0 release.
-- Regards, Igor Levicki If you find my post helpfull, please rate it and/or select it as a best answer where applies. Thank you.

登陆并发表评论。