Re: Re: GCC link problem help!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2021-10-21 at 11:36 +0800, 桂永林 wrote:
> If there is some special parameter we need check, when we link the c++
> lib to C program with C linker? 

-lstdc++ is enough as you've already disabled exception and rtti.  If
exception or rtti is used, -lsupc++ is also needed.

But missing them should cause a linker error instead of runtime issue..

-- 
Xi Ruoyao <xry111@xxxxxxxxxxxxxxxx>
School of Aerospace Science and Technology, Xidian University



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux