Re: Beginning C++ in FreeBSD
Sergey Zaharchenko <doublef@tele-kom.ru> writes:
> // Turing strikes again:)
> // Ok. Write this (to be compiled as a shared object) in portable C:
>
> #include <iostream>
>
> class A
> {
> public:
> A();
> };
>
> A::A()
> {
> cout<<"This shared library was loaded!"<<endl;
> }
>
> static A a;
Sure:
void a(void)
{
cout =3D endl =3D 0;
}
the error message won't be *exactly* the same, but pretty close
(different line numbers, and "In function `a'" instead of "In
constructor `A::A()'")
DES
--=20
Dag-Erling Sm=F8rgrav - des@des.no
_______________________________________________
freebsd-chat@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-chat
To unsubscribe, send any mail to "freebsd-chat-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 25 之 43 篇):