[uClibc]compiling c++ apps?
Eduardo B. Fonseca
ebf-sender-808baf at aedsolucoes.com.br
Mon Nov 18 17:57:47 UTC 2002
oopss!!
now I understood your question :)
Reading fast is not good... heheheh...
sorry!
Eduardo.
On Mon, 2002-11-18 at 15:50, Eduardo B. Fonseca wrote:
> Hello Jean!
>
> Try using g++ :)
>
> Eduardo.
>
> On Mon, 2002-11-18 at 15:44, jeand at telusplanet.net wrote:
> > Hi,
> >
> > This sounds, to me, like a newbie question, but it's got me stumped, so I
> > thought I'd ask it anyways. 8-)
> >
> > When compiling c++ apps that reference c++ stuff using gcc, the standard
> > libraries aren't linked in automatically. I need to add '-lstdc++ -lm -lgcc_s'
> > to the command-line.
> >
> >
> > conftest.C:
> > #include <iostream>
> > int main() {return 0;}
> >
> > gcc conftest.C
> > undefined reference to 'std::ios_base::Init::INit[in-charge]()'
> > etc.
> >
> > g++ conftest.C
> > no errors (other than the current bug about dl_iterate_phdr)
> >
> > In my main distribution, gcc works like g++ when confronted with C++ code. So
> > what is the difference?
> >
> > Jean Duteau
> >
> > P.S.
> > I tried the above in my built system and in Erik's reference system with the
> > same results.
> >
> >
> > _______________________________________________
> > uClibc mailing list
> > uClibc at uclibc.org
> > http://uclibc.org/mailman/listinfo/uclibc
> >
>
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://uclibc.org/mailman/listinfo/uclibc
>
More information about the uClibc
mailing list