看板 FB_chat 關於我們 聯絡資訊
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"