LNK2001 for all destructors

LNK2001 for all destructors

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 posts / novo 0
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.

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

Deixar um comentário

Faça login para adicionar um comentário. Não é membro? Inscreva-se hoje mesmo!