Date: Tue, 27 Apr 2004 14:41:33 +0200 From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) To: Sergey Zaharchenko <doublef@tele-kom.ru> Cc: chat@freebsd.org Subject: Re: Beginning C++ in FreeBSD Message-ID: <xzphdv5wq2q.fsf@dwp.des.no> In-Reply-To: <20040426115842.GA4144@Shark.localdomain> (Sergey Zaharchenko's message of "Mon, 26 Apr 2004 15:58:42 %2B0400") References: <20040425215837.3f4708fe.cpressey@catseye.mine.nu> <20040426094335.GA7578@online.fr> <20040426115842.GA4144@Shark.localdomain>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzphdv5wq2q.fsf>