If you don't have libctdc++ installed on the host machine (along with libgcc) gcc and linker will look for the static libraries. ---- Lev Assinovsky Aelita Software Corporation O&S InTrust Framework Division, Team Leader ICQ# 165072909 > -----Original Message----- > From: Nizar ROMDHANE [mailto:nizar.romdhane@xxxxxx] > Sent: Friday, February 20, 2004 3:02 PM > To: gcc-help@xxxxxxxxxxx > Subject: gcc shared versus static > > > Hi all, > > I would like to know the difference between compiling gcc with > --enable-shared and with --disable-shared? > > Infact I would like to generate a stand alone binary with no need to > have libctdc++ installed on the host machine. If I compile gcc with > --disable-shared and then use it to compile my project (c++ project) > into a binary, will it be stand alone? If not how can I have this (of > course if possible) > > Thanks a lot > Cheers > > -- > ----------------------------------------- > Nizar ROMDHANE > System Level Design Engineer > SLD Team Leader - OCCS - CMG Design - CMG > STMicroelectronics Tunis > Cite Technologique des communications - > Elghazala - 2088 - Ariana - TUNISIA > phone: +216 71 857 750 (office 131) > mobile: +216 97 431 708 > fax: +216 71 857 525 > e-mail: nizar.romdhane@xxxxxx > nizar_romdane@xxxxxxxx > web: http://www.st.com > ----------------------------------------- > >